[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kwallet
From:       George Staikos <staikos () kde ! org>
Date:       2005-02-21 5:11:41
Message-ID: 20050221051141.7FC741BC1A () office ! kde ! org
[Download RAW message or body]

CVS commit by staikos: 

Don't try to create a new wallet if KWallet is disabled.  The clean fix requires
a new i18n().  Any objections to me adding this one?
BUG: 99266
CCMAIL: kde-i18n-doc@kde.org


  M +5 -0      kwalletmanager.cpp   1.53


--- kdeutils/kwallet/kwalletmanager.cpp  #1.52:1.53
@@ -347,4 +347,9 @@ void KWalletManager::createWallet() {
         QString txt = i18n("Please choose a name for the new wallet:");
 
+        if (!KWallet::Wallet::isEnabled()) {
+                // FIXME: KMessageBox::warningYesNo(this, i1_8n("KWallet is not \
enabled.  Do you want to enable it?")); +                return;
+        }
+
         do {
                 n = KInputDialog::getText(i18n("New Wallet"),


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic