aboutsummaryrefslogtreecommitdiffstats
path: root/keymgmt.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-24 20:39:38 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-24 20:39:38 +0000
commit9efc974492785cf469f049d783ec8e3f34b12a2b (patch)
tree6998a34247cf4f3768f76d1c831fd43206a1df9c /keymgmt.cpp
parentshow messagebox, when config from old gpg4usb was imported (diff)
downloadgpg4usb-9efc974492785cf469f049d783ec8e3f34b12a2b.tar.gz
gpg4usb-9efc974492785cf469f049d783ec8e3f34b12a2b.zip
minor correction
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@772 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-xkeymgmt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp
index 20d9784..c6bf1f6 100755
--- a/keymgmt.cpp
+++ b/keymgmt.cpp
@@ -169,6 +169,7 @@ void KeyMgmt::importKeyFromFile()
file.setFileName(fileName);
if (!file.open(QIODevice::ReadOnly)) {
qDebug() << tr("Couldn't Open File: ") + fileName;
+ return;
}
QByteArray inBuffer = file.readAll();
importKeys(inBuffer);