Prevent segfault when attempting to view source

This commit is contained in:
Martchus 2017-11-01 18:25:30 +01:00
parent 3a81ae4f61
commit c9a9291697
1 changed files with 1 additions and 1 deletions

View File

@ -60,6 +60,7 @@ WebPage::WebPage(WebViewDialog *dlg, SYNCTHINGWIDGETS_WEB_VIEW *view)
// -> there need to be a view, though
m_view = new SYNCTHINGWIDGETS_WEB_VIEW;
m_view->setPage(this);
setParent(m_view);
}
}
@ -160,7 +161,6 @@ void WebPage::delegateNewWindowToExternalBrowser(const QUrl &url)
QDesktopServices::openUrl(url);
// this page and the associated view are useless
m_view->deleteLater();
deleteLater();
}
/*!