Bug 71143

Summary: kwallet in system tray does not provide configure option
Product: [Applications] kwalletmanager Reporter: Richard Bos <richard.bos>
Component: generalAssignee: George Staikos <staikos>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Richard Bos 2003-12-23 20:54:41 UTC
Version:            (using KDE KDE 3.1.94)
OS:          Linux

When right clicking on the kwaller manager icon in the
system tray no access is provided to the wallet manager's
configuration menu.
There is only restor or minimize and quit.
Comment 1 George Staikos 2004-01-27 07:05:46 UTC
Subject: kdeutils/kwallet

CVS commit by staikos: 

fix minor bug with last commit, and add Configure menu entry to the tray menu
CCMAIL: 71143-done@bugs.kde.org


  M +7 -4      kwalletmanager.cpp   1.38


--- kdeutils/kwallet/kwalletmanager.cpp  #1.37:1.38
@@ -60,8 +60,9 @@ KWalletManager::KWalletManager(QWidget *
                 if (KWallet::Wallet::isOpen(*it)) {
                         _tray->setPixmap(loadSystemTrayIcon("wallet_open"));
+                        QToolTip::remove(_tray);
+                        QToolTip::add(_tray, i18n("KDE Wallet: A wallet is open."));
                         break;
                 }
         }
-        _tray->show();
 
         _iconView = new KWalletIconView(this, "kwalletmanager icon view");
@@ -97,7 +98,8 @@ KWalletManager::KWalletManager(QWidget *
                         SLOT(createWallet()), actionCollection(),
                         "wallet_create");
-        new KAction(i18n("Configure &Wallet..."), "configure", 0, this,
-                        SLOT(setupWallet()), actionCollection(),
+        KAction *act = new KAction(i18n("Configure &Wallet..."), "configure",
+                        0, this, SLOT(setupWallet()), actionCollection(),
                         "wallet_settings");
+        act->plug(_tray->contextMenu());
         KStdAction::quit(this, SLOT(shuttingDown()), actionCollection());
         KStdAction::keyBindings( this, SLOT( slotConfigureKeys() ), actionCollection() );
@@ -109,4 +111,5 @@ KWalletManager::KWalletManager(QWidget *
                            this, SLOT(deleteWallet()) );
 
+        _tray->show();
 }