aboutsummaryrefslogtreecommitdiffstats
path: root/keymgmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-xkeymgmt.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp
index 45e23fd..f4a33fb 100755
--- a/keymgmt.cpp
+++ b/keymgmt.cpp
@@ -42,10 +42,11 @@ KeyMgmt::KeyMgmt(GpgME::Context *ctx, QString iconpath)
/* Restore the iconstyle */
QSettings settings;
+ settings.sync();
QSize iconSize = settings.value("toolbar/iconsize", QSize(32, 32)).toSize();
Qt::ToolButtonStyle buttonStyle = static_cast<Qt::ToolButtonStyle>(settings.value("toolbar/iconstyle", Qt::ToolButtonTextUnderIcon).toUInt());
- setIconSize(iconSize);
- setToolButtonStyle(buttonStyle);
+ this->setIconSize(iconSize);
+ this->setToolButtonStyle(buttonStyle);
setWindowTitle(tr("Keymanagement"));
mKeyList->addMenuAction(deleteSelectedKeysAct);