Skip to content

Commit 2a27c9d

Browse files
committed
fixed navigateToUrl for widget views
1 parent 9409694 commit 2a27c9d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/webdriver/extension_qt/widget_view_executor.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -821,14 +821,6 @@ void QWidgetViewCmdExecutor::NavigateToURL(const std::string& url, bool sync, Er
821821
return;
822822
}
823823

824-
// close old widget, destroy children correctly
825-
QList<QWidget*> childs = view->findChildren<QWidget*>();
826-
foreach(QWidget *child, childs)
827-
{
828-
child->setAttribute(Qt::WA_DeleteOnClose, true);
829-
child->close();
830-
}
831-
832824
view->close();
833825

834826
// map viewId to new widget

0 commit comments

Comments
 (0)