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

List:       kde-commits
Subject:    branches/work/kgpg2
From:       Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date:       2008-01-16 19:16:47
Message-ID: 1200511007.378062.24863.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 762294 by dakon:

Port deleting secret keys to model/view

 M  +5 -3      keysmanager.cpp  


--- branches/work/kgpg2/keysmanager.cpp #762293:762294
@@ -2040,10 +2040,12 @@
 
 void KeysManager::deleteseckey()
 {
+	KGpgNode *nd = iview->selectedNode();
+	Q_ASSERT(nd != NULL);
+
     // delete a key
-    QString res = keysList2->currentItem()->text(0) + " (" + \
keysList2->currentItem()->text(1) + ')';  int result = \
                KMessageBox::warningContinueCancel(this,
-                        i18n("<p>Delete <b>secret</b> key pair \
<b>%1</b>?</p>Deleting this key pair means you will never be able to decrypt files \
encrypted with this key again.", res), +                        i18n("<p>Delete \
<b>secret</b> key pair <b>%1</b>?</p>Deleting this key pair means you will never be \
able to decrypt files encrypted with this key again.", nd->getNameComment()),  \
QString(),  KGuiItem(i18n("Delete"),"edit-delete"));
     if (result != KMessageBox::Continue)
@@ -2052,7 +2054,7 @@
     KProcess *conprocess = new KProcess();
     KConfigGroup config(KGlobal::config(), "General");
     *conprocess << config.readPathEntry("TerminalApplication","konsole");
-    *conprocess << "-e" << KGpgSettings::gpgBinaryPath() <<"--no-secmem-warning" << \
"--delete-secret-and-public-key" << keysList2->currentItem()->keyId(); +    \
*conprocess << "-e" << KGpgSettings::gpgBinaryPath() <<"--no-secmem-warning" << \
                "--delete-secret-and-public-key" << nd->getId();
     connect(conprocess, SIGNAL(finished(int)), this, SLOT(reloadSecretKeys()));
     conprocess->start();
 }


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

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