[KimDaBa] Really quit after "Save Changes ?"

Jean-Michel FAYARD jmfayard at gmail.com
Wed Dec 1 19:32:31 GMT 2004


Is there a reason why Kimdaba does not quit when you have not-yet-saved
changes and you don´t choose "Cancel" on the "Save changes ?" dialog ?

It´s a small thingy, but it bothers me when I want to log out of KDE 
and KimDaBa discards the whole thing.


cvs diff: Diffing .
Index: mainview.cpp
===================================================================
RCS file: /home/kde/kdeextragear-2/kimdaba/mainview.cpp,v
retrieving revision 1.151
diff -u -p -r1.151 mainview.cpp
--- mainview.cpp        10 Nov 2004 04:38:33 -0000      1.151
+++ mainview.cpp        1 Dec 2004 19:26:36 -0000
@@ -213,9 +213,11 @@ bool MainView::slotExit()
             return false;
         if ( ret == KMessageBox::Yes ) {
             slotSave();
+           goto doQuit ;
         }
         if ( ret == KMessageBox::No ) {
             QDir().remove( Options::instance()->imageDirectory() +
QString::fromLatin1(".#index.xml") );
+           goto doQuit ;
         }
     }



More information about the Kphotoalbum mailing list