aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-11-13 11:52:58 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-11-13 11:52:58 +0000
commit832c682c72cc4d8ac3da117eb64138697c782205 (patch)
tree7642552d74ff31798cdc9dea576bde3928cd47d1
parentupdated spanish translation files (diff)
downloadgpg4usb-832c682c72cc4d8ac3da117eb64138697c782205.tar.gz
gpg4usb-832c682c72cc4d8ac3da117eb64138697c782205.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/branches/0.3.1@606 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rwxr-xr-xkeymgmt.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp
index 730ecdb..451eaf7 100755
--- a/keymgmt.cpp
+++ b/keymgmt.cpp
@@ -49,8 +49,7 @@ KeyMgmt::KeyMgmt(GpgME::Context *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"));