From 932aeffab0f1185bd288e1d27795b346069b7d39 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 15 Feb 2013 17:41:56 +0100 Subject: Get sure tabWindow && webwindow exist before calling them BUG: 315165 --- src/application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/application.cpp b/src/application.cpp index 19f5b756..0c96d986 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -312,7 +312,8 @@ int Application::newInstance() { if (hasToBeRecoveredFromCrash && !incognito) { - QTimer::singleShot(1000, tabWindow()->currentWebWindow(), SLOT(showCrashMessageBar())); + if (tabWindow() && tabWindow()->currentWebWindow()) + QTimer::singleShot(1000, tabWindow()->currentWebWindow(), SLOT(showCrashMessageBar())); } else { -- cgit v1.2.1