summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorpano <pano@linux-xtvb.(none)>2010-03-06 16:37:47 +0100
committerpano <pano@linux-xtvb.(none)>2010-03-06 16:37:47 +0100
commite846f0e8cc58036a6fc6455f8a40f621c636cbc5 (patch)
treeaa1b4dce1bfc72f33aab867080e7da795f74be8d /src/mainview.cpp
parentkWarning --> kDebug (diff)
downloadrekonq-e846f0e8cc58036a6fc6455f8a40f621c636cbc5.tar.xz
Replace "Yes/No" dialog
code copied and pasted from Konqueror (konqmainwindow.cpp) and adapted to rekonq code by me
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index e2f9094f..fc4ddc6c 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("&Discard Changes"),"view-refresh"), KStandardGuiItem::cancel());
+ if (risp != KMessageBox::Continue)
return;
}
hasFocus = tab->hasFocus();