summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-02-15 17:41:56 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-02-15 17:41:56 +0100
commit932aeffab0f1185bd288e1d27795b346069b7d39 (patch)
treeab2b0f9718bc5345eeed1a5a81344eb385cee927 /src/application.cpp
parentRestores Bookmarks menu (in 2.x fashion) (diff)
downloadrekonq-932aeffab0f1185bd288e1d27795b346069b7d39.tar.xz
Get sure tabWindow && webwindow exist before calling them
BUG: 315165
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp3
1 files changed, 2 insertions, 1 deletions
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
{