From a3b057ecbc5993196f61693abe7355740a17cee1 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 11 Feb 2012 23:52:40 +0100 Subject: Delay showMessageBar creation to get sure it is created after window This should fix Yoann's problem with bar and let us have a little bit clean API in webtab REVIEW:103905 --- src/application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index d8044e24..1bf7b556 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -205,7 +205,7 @@ int Application::newInstance() if (isRekonqCrashed && isFirstLoad) { loadUrl(KUrl("about:closedTabs"), Rekonq::NewWindow); - mainWindow()->currentTab()->showMessageBar(); + QTimer::singleShot(1000, mainWindow()->currentTab(), SLOT(showMessageBar())); } if (areThereArguments) -- cgit v1.2.1