summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/application.cpp b/src/application.cpp
index c00f3f96..a61c1ce3 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -165,12 +165,10 @@ int Application::newInstance()
loadUrl(KUrl("about:closedTabs"), Rekonq::NewWindow);
MessageBar *msgBar = new MessageBar(i18n("It seems rekonq was not closed properly. Do you want "
"to restore the last saved session?")
- , mainWindow()->currentTab()
- , QMessageBox::Warning
- , MessageBar::Yes | MessageBar::No);
-
+ , mainWindow()->currentTab());
+
connect(msgBar, SIGNAL(accepted()), sessionManager(), SLOT(restoreSession()));
- mainWindow()->currentTab()->insertBar(msgBar);
+ msgBar->animatedShow();
}
if (areThereArguments)