From e3cdb49f2aa6b84f60deabbd20945e02a48193c7 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 1 Jul 2011 10:56:10 +0200 Subject: Move to KMessageWidget Port rekonq notification bars to KMessageWidget: walletbar, crash notification bar, set favorite preview bar. Remove old no more used notification bar. --- src/application.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/application.cpp') 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) -- cgit v1.2.1