SVN commit 762689 by dakon: port remaing bits of key import to model/view M +1 -1 keysmanager.cpp M +4 -4 kgpginterface.cpp --- branches/work/kgpg2/keysmanager.cpp #762688:762689 @@ -2170,7 +2170,7 @@ { changeMessage(i18n("Importing..."), 0, true); KgpgInterface *importKeyProcess = new KgpgInterface(); - connect(importKeyProcess,SIGNAL(importKeyFinished(QStringList)),keysList2,SLOT(slotReloadKeys(QStringList))); + connect(importKeyProcess, SIGNAL(importKeyFinished(QStringList)), imodel, SLOT(refreshKeys(QStringList))); importKeyProcess->importKey(keystr); } } --- branches/work/kgpg2/kgpginterface.cpp #762688:762689 @@ -1594,7 +1594,8 @@ if (messageList[8] != "0") { resultMessage += i18np("One revocation certificate imported.", "%1 revocation certificates imported.", messageList[8].toULong()); - importedKeysIds = QStringList("ALL"); + // empty list means "reload all" + importedKeysIds.clear(); } if (messageList[9] != "0") { @@ -1613,12 +1614,11 @@ "Please note that imported secret keys are not trusted by default.
" "To fully use this secret key for signing and encryption, you must edit the key (double click on it) and set its trust to Full or Ultimate."); - } + emit importKeyFinished(importedKeysIds); + } else resultMessage = i18n("No key imported... \nCheck detailed log for more infos"); - emit importKeyFinished(importedKeysIds); - // TODO : should be deleted. KgpgInterface should not show any dialog (but password). // When a message should be shown, it should be passed by parameter in a SIGNAL. (void) new KgpgDetailedInfo(0, resultMessage, message, importedKeys);