diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-07-01 10:56:10 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-07-11 12:52:53 +0200 |
commit | e3cdb49f2aa6b84f60deabbd20945e02a48193c7 (patch) | |
tree | eca32ed4bb33092a4d630ddbd5817039c4033ffd /src/application.cpp | |
parent | Add GFDL-1.2 licensing for docs (diff) | |
download | rekonq-e3cdb49f2aa6b84f60deabbd20945e02a48193c7.tar.xz |
Move to KMessageWidget
Port rekonq notification bars to KMessageWidget:
walletbar, crash notification bar, set favorite preview bar.
Remove old no more used notification bar.
Diffstat (limited to 'src/application.cpp')
-rw-r--r-- | src/application.cpp | 8 |
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) |