From e846f0e8cc58036a6fc6455f8a40f621c636cbc5 Mon Sep 17 00:00:00 2001 From: pano Date: Sat, 6 Mar 2010 16:37:47 +0100 Subject: Replace "Yes/No" dialog code copied and pasted from Konqueror (konqmainwindow.cpp) and adapted to rekonq code by me --- src/mainview.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainview.cpp') 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(); -- cgit v1.2.1