diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-03-12 12:23:22 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-03-12 12:23:22 +0100 |
commit | f46a4d0285fad69c7840ecd8a6803a3644af2112 (patch) | |
tree | dac8ddc78a047e27fb063f5739bad66d6161a621 /src | |
parent | Added i18n stuffs (diff) | |
parent | Further changes to my last commit (diff) | |
download | rekonq-f46a4d0285fad69c7840ecd8a6803a3644af2112.tar.xz |
Merge commit 'refs/merge-requests/102' of git://gitorious.org/rekonq/mainline into panoMR
Diffstat (limited to 'src')
-rw-r--r-- | src/mainview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp index e2f9094f..f2152364 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -495,12 +495,12 @@ void MainView::closeTab(int index) { if (tab->view()->isModified()) { - int risp = KMessageBox::questionYesNo(this, + int risp = KMessageBox::warningContinueCancel(this, i18n("This tab contains changes that have not been submitted.\n" "Closing the tab will discard these changes.\n" "Do you really want to close this tab?\n"), - i18n("Closing Modified Tab")); - if (risp == KMessageBox::No) + i18n("Closing Modified Tab"), KGuiItem(i18n("Close &Tab"),"tab-close"), KStandardGuiItem::cancel()); + if (risp != KMessageBox::Continue) return; } hasFocus = tab->hasFocus(); |