summaryrefslogtreecommitdiff
blob: fe8029365357cb6b7bcd696a9e57389e360d4366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- branches/KDE/3.5/kdebase/kate/app/katesession.cpp	2007/06/16 03:24:38	676114
+++ branches/KDE/3.5/kdebase/kate/app/katesession.cpp	2007/06/16 03:24:56	676115
@@ -381,13 +381,13 @@
 
     if (sesExit == "ask")
     {
-      KDialogBase dlg( i18n ("Save Session?")
+      KDialogBase* dlg = new KDialogBase(i18n ("Save Session?")
                      , KDialogBase::Yes | KDialogBase::No
                      , KDialogBase::Yes, KDialogBase::No
                      );
 
       bool dontAgain = false;
-      int res = KMessageBox::createKMessageBox(&dlg, QMessageBox::Question,
+      int res = KMessageBox::createKMessageBox(dlg, QMessageBox::Question,
                               i18n("Save current session?"), QStringList(),
                               i18n("Do not ask again"), &dontAgain, KMessageBox::Notify);