[Konsole-devel] [Bug 62568] [PATCH] Allow closing current session in 'Really Quit?' dialog

Dirk Mueller mueller at kde.org
Sun Nov 2 17:12:37 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=62568     
mueller at kde.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From mueller at kde.org  2003-11-02 18:12 -------
Subject: kdebase/konsole/konsole

CVS commit by mueller: 

implement "close session" in the multiple-tab-close-case. Thanks for
the patch.

CCMAIL: 62568-done at bugs.kde.org


  M +22 -12    konsole.cpp   1.436


--- kdebase/konsole/konsole/konsole.cpp  #1.435:1.436
@@ -1068,16 +1068,26 @@ bool Konsole::queryClose()
    if ( b_warnQuit)
    {
-        if( (sessions.count()>1) &&
-            ( KMessageBox::warningYesNo( this,
+        if(sessions.count()>1) {
+            switch (
+                KMessageBox::warningYesNoCancel( 
+                    this,
                                          i18n( "You have open sessions (besides the current one). "
                                                "These will be killed if you continue.\n"
                                                "Are you sure you want to quit?" ),
                                          i18n("Really Quit?"),
-                                         i18n("&Quit"), i18n("&Cancel") )
-
-              == KMessageBox::No )
+                    i18n("&Quit"), 
+                    KGuiItem(i18n("C&lose Session"),"fileclose")
+                )
             ) {
+                case KMessageBox::Yes :
+                break;
+                case KMessageBox::No :
+                    { closeCurrentSession(); 
             return false;
         }
+                break;
+                case KMessageBox::Cancel : return false; 
+            }
+        }
     }



More information about the konsole-devel mailing list