diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-05-28 22:05:45 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-05-29 14:33:05 +0300 |
commit | 149043a24273e5f02ed921e33c256567156fa95a (patch) | |
tree | 9cf19007a2dd055e75fb8d9d2335737ae90fb333 /src/subwindow/subwindow.cpp | |
parent | Turn on more warnings by default (diff) | |
download | smolbote-149043a24273e5f02ed921e33c256567156fa95a.tar.xz |
Fix segfault in release build
When creating a WebView out of a Session struct, fall back to the
default profile if one is not set, or a profile with that ID is not
found.
- Update PKGBUILD
Diffstat (limited to 'src/subwindow/subwindow.cpp')
-rw-r--r-- | src/subwindow/subwindow.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/subwindow/subwindow.cpp b/src/subwindow/subwindow.cpp index 6e9a713..a2d6138 100644 --- a/src/subwindow/subwindow.cpp +++ b/src/subwindow/subwindow.cpp @@ -57,7 +57,6 @@ SubWindow::SubWindow(QWidget *parent, Qt::WindowFlags flags) close(); } else { auto *view = dynamic_cast<WebView *>(tabWidget->widget(index)); - Q_CHECK_PTR(view); disconnect(titleConnection); disconnect(linkHoveredConnection); @@ -67,12 +66,10 @@ SubWindow::SubWindow(QWidget *parent, Qt::WindowFlags flags) this->setWindowTitle(QString("%1 :%2").arg(title, v->profile()->name())); }); setWindowTitle(QString("%1 :%2").arg(view->title(), view->profile()->name())); - linkHoveredConnection = connect(view->page(), &WebPage::linkHovered, this, [this](const QString &url) { if(!url.isEmpty()) emit showStatusMessage(url, 3000); }); - emit currentViewChanged(view); } }); |