From 5c8afde4d988fb26b2d9e2e34a86d6b14421d2ac Mon Sep 17 00:00:00 2001 From: nowrep Date: Mon, 31 Mar 2014 10:01:04 +0200 Subject: [PATCH] [Crash] Fixed crash in BrowserWindow::event Closes #1273 --- src/lib/app/browserwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index e4ff43578..1f6a43ae8 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -108,6 +108,7 @@ BrowserWindow::BrowserWindow(Qz::BrowserWindowType type, const QUrl &startUrl) , m_sideBarManager(new SideBarManager(this)) , m_statusBarMessage(new StatusBarMessage(this)) , m_useTransparentBackground(false) + , m_hideNavigationTimer(0) { setObjectName("mainwindow"); setAttribute(Qt::WA_DeleteOnClose); @@ -1124,7 +1125,10 @@ bool BrowserWindow::event(QEvent* event) } #endif } - m_hideNavigationTimer->stop(); + + if (m_hideNavigationTimer) { + m_hideNavigationTimer->stop(); + } break; }