Skip to content

Commit

Permalink
BrowserView: fix QWebEngine crash
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and wwmayer committed Jun 21, 2019
1 parent d2f0c4f commit 662aebd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mod/Web/Gui/BrowserView.cpp
Expand Up @@ -227,6 +227,11 @@ BrowserView::BrowserView(QWidget* parent)
isLoading(false),
textSizeMultiplier(1.0)
{
#if defined(QTWEBENGINE)
// Otherwise cause crash on exit, probably due to double deletion
setAttribute(Qt::WA_DeleteOnClose,false);
#endif

view = new WebView(this);
setCentralWidget(view);

Expand Down

0 comments on commit 662aebd

Please sign in to comment.