Bug 78178 - Qtrl+Q must QUIT the application and not hide it to system tray icon
Summary: Qtrl+Q must QUIT the application and not hide it to system tray icon
Status: RESOLVED FIXED
Alias: None
Product: kgpg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: bj
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 01:09 UTC by Sebastien
Modified: 2004-03-24 14:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien 2004-03-22 01:09:29 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    Mandrake RPMs

When choose File -> Quit from main window or Wtrl+Q, Kgpg is hidden to system tray and not quitted.

It's an inconsistency bug.
And a feature bug.

Because we can close window by Alt+F4 : redondant.
Ctrl+Q was always designed to Quit app.

All other apps (JuK, KGet, KMix...) quit app and not hide it.

Thank you for resolve it.
Comment 1 scaba 2004-03-22 16:44:27 UTC
I can only confirm this and would appreciate if it gets fixed in KDE 3.2.2.
Comment 2 scaba 2004-03-22 21:06:37 UTC
...maybe I have to add that im using KDE 3.2.1, compiled from source using GCC 3.3.2 (Gentoo Linux). Sorry, I forgot about that.
Comment 3 bj 2004-03-24 14:49:40 UTC
CVS commit by mardelle: 

Ctrl-Q exits app instead of closing main window
CCMAIL: 78178-done@bugs.kde.org


  M +1 -1      kgpgeditor.cpp   1.36
  M +8 -2      listkeys.cpp   1.184
  M +1 -0      listkeys.h   1.81


--- kdeutils/kgpg/kgpgeditor.cpp  #1.35:1.36
@@ -129,5 +129,5 @@ void KgpgApp::slotFileQuit()
 {
         saveOptions();
-        close();
+        exit(1);
 }
 

--- kdeutils/kgpg/listkeys.cpp  #1.183:1.184
@@ -513,5 +513,4 @@ listKeys::listKeys(QWidget *parent, cons
     keysList2->groupNb=0;
 
-    setAutoSaveSettings();
     readOptions();
 
@@ -539,5 +538,5 @@ listKeys::listKeys(QWidget *parent, cons
     (void) new KAction(i18n("&Go to Default Key"), "gohome",QKeySequence(CTRL+Qt::Key_Home) ,this, SLOT(slotGotoDefaultKey()),actionCollection(),"go_default_key");
 
-    KStdAction::quit(this, SLOT(annule()), actionCollection());
+    KStdAction::quit(this, SLOT(quitApp()), actionCollection());
     KStdAction::find(this, SLOT(findKey()), actionCollection());
     KStdAction::findNext(this, SLOT(findNextKey()), actionCollection());
@@ -683,4 +682,6 @@ listKeys::listKeys(QWidget *parent, cons
     if (!KGpgSettings::showToolbar())
         toolBar()->hide();
+        
+        setAutoSaveSettings();
 }
 
@@ -1319,4 +1320,9 @@ void listKeys::annule()
 }
 
+void listKeys::quitApp()
+{
+    /////////  close window
+    exit(1);
+}
 
 void listKeys::readOptions()

--- kdeutils/kgpg/listkeys.h  #1.80:1.81
@@ -219,4 +219,5 @@ public slots:
 
 private slots:
+        void quitApp();
         void  slotOpenEditor();
         void keyFilter( const QString &filterStr);