summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();