Skip to content

Commit

Permalink
fix #285057: crash on Start Center loading
Browse files Browse the repository at this point in the history
Send QUrl parameter to lambda by value in case of crashing Chromium
  • Loading branch information
anatoly-os committed Mar 4, 2019
1 parent 660de74 commit 808e9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/startcenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Startcenter::Startcenter(QWidget* parent)
horizontalLayout->addWidget(_webView);

//workaround for the crashes sometimes happend in Chromium on macOS with Qt 5.12
connect(_webView, &QWebEngineView::renderProcessTerminated, this, [this, profile, &connectPageUrl](QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode)
connect(_webView, &QWebEngineView::renderProcessTerminated, this, [this, profile, connectPageUrl](QWebEnginePage::RenderProcessTerminationStatus terminationStatus, int exitCode)
{
qDebug() << "Login page loading terminated" << terminationStatus << " " << exitCode;
profile->clearHttpCache();
Expand Down

0 comments on commit 808e9bb

Please sign in to comment.