aboutsummaryrefslogtreecommitdiffstats
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-04 19:13:51 +0000
committerSaturneric <[email protected]>2021-07-04 19:13:51 +0000
commit5846ce6d613eb84dcd61b468155a6d36dbdcfdf7 (patch)
tree5e435375aed59972d473a8dbd06ca8a3cb18edb5 /src/MainWindow.cpp
parentImprove UI; Improve File Opera; (diff)
downloadGpgFrontend-5846ce6d613eb84dcd61b468155a6d36dbdcfdf7.tar.gz
GpgFrontend-5846ce6d613eb84dcd61b468155a6d36dbdcfdf7.zip
Adjust and improve the basic settings page
Other improvements
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index 0d8521e7..a3d4f1e2 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -146,8 +146,8 @@ void MainWindow::restoreSettings() {
fileEncButton->setToolButtonStyle(buttonStyle);
// Checked Keys
- if (settings.value("keys/keySave").toBool()) {
- QStringList keyIds = settings.value("keys/keyList").toStringList();
+ if (settings.value("keys/saveKeyChecked").toBool()) {
+ QStringList keyIds = settings.value("keys/savedCheckedKeyList").toStringList();
mKeyList->setChecked(&keyIds);
}
}
@@ -159,15 +159,15 @@ void MainWindow::saveSettings() {
settings.setValue("window/size", size());
// keyid-list of private checked keys
- if (settings.value("keys/keySave").toBool()) {
- QStringList *keyIds = mKeyList->getPrivateChecked();
+ if (settings.value("keys/saveKeyChecked").toBool()) {
+ QStringList *keyIds = mKeyList->getChecked();
if (!keyIds->isEmpty()) {
- settings.setValue("keys/keyList", *keyIds);
+ settings.setValue("keys/savedCheckedKeyList", *keyIds);
} else {
- settings.setValue("keys/keyList", "");
+ settings.setValue("keys/savedCheckedKeyList", "");
}
} else {
- settings.remove("keys/keyList");
+ settings.remove("keys/savedCheckedKeyList");
}
}