diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-31 20:29:42 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-31 20:29:42 +0000 |
commit | 6cf2becbdfb9ce0e63932716cf40a4131b69fc19 (patch) | |
tree | 90df303e82848c1ec11723372f6ab38e7c4bee01 /keymgmt.cpp | |
parent | added experimental popup import-toolbutton to toolbar (diff) | |
download | gpg4usb-6cf2becbdfb9ce0e63932716cf40a4131b69fc19.tar.gz gpg4usb-6cf2becbdfb9ce0e63932716cf40a4131b69fc19.zip |
save key management size and position, even if it closed via quit in menu (BUGFIX)
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@593 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-x | keymgmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp index 6a0b8f3..85552aa 100755 --- a/keymgmt.cpp +++ b/keymgmt.cpp @@ -49,8 +49,7 @@ KeyMgmt::KeyMgmt(GpgME::GpgContext *ctx, QString iconpath) this->restoreState(settings.value("keymgmt/windowState").toByteArray()); // Restore window size & location - Qt::CheckState windowSave = static_cast<Qt::CheckState>(settings.value("window/windowSave", Qt::Unchecked).toUInt()); - if (windowSave == Qt::Checked) { + if (settings.value("window/windowSave").toBool()) { QPoint pos = settings.value("keymgmt/pos", QPoint(100, 100)).toPoint(); QSize size = settings.value("keymgmt/size", QSize(800, 450)).toSize(); this->resize(size); @@ -70,7 +69,7 @@ void KeyMgmt::createActions() closeAct->setShortcut(tr("Ctrl+Q")); closeAct->setIcon(QIcon(mIconPath + "exit.png")); closeAct->setToolTip(tr("Close Key Management")); - connect(closeAct, SIGNAL(triggered()), this, SLOT(hide())); + connect(closeAct, SIGNAL(triggered()), this, SLOT(close())); importKeyFromFileAct = new QAction(tr("&File"), this); importKeyFromFileAct->setIcon(QIcon(mIconPath + "import_key_from_file.png")); |