diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-10 18:08:34 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-10 18:08:34 +0000 |
commit | 5b68ac27a4c773c03c9d9a36d8e8baf9be5e2f61 (patch) | |
tree | bdcb9686aa7aa681003dff09b41156e8b8d6024f /gpgwin.cpp | |
parent | reinclude attachments-view in build (diff) | |
download | gpg4usb-5b68ac27a4c773c03c9d9a36d8e8baf9be5e2f61.tar.gz gpg4usb-5b68ac27a4c773c03c9d9a36d8e8baf9be5e2f61.zip |
only save and restore checked private keys
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@319 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -102,7 +102,6 @@ void GpgWin::restoreSettings() if (keySave == Qt::Checked) { QStringList keyIds = settings.value("keys/keyList").toStringList(); mKeyList->setChecked(&keyIds); - } } @@ -331,12 +330,14 @@ void GpgWin::closeEvent(QCloseEvent *event) // keyid-list of private checked keys Qt::CheckState keySave = static_cast<Qt::CheckState>(settings.value("keys/keySave", Qt::Unchecked).toUInt()); if ( keySave == Qt::Checked ) { - QStringList *keyIds = mKeyList->getChecked(); + QStringList *keyIds = mKeyList->getPrivateChecked(); if (!keyIds->isEmpty()){ settings.setValue("keys/keyList", *keyIds); } else { settings.setValue("keys/keyList",""); } + } else { + settings.remove("keys/keyList"); } /******************** |