Commit 477d9946 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use "KSharedConfig::openStateConfig" for dialog layout settings

parent 997bce99
Pipeline #67311 passed with stage
in 10 minutes
...@@ -475,7 +475,7 @@ void Kleo::KeySelectionDialog::setUpUI(Options options, const QString &initialQu ...@@ -475,7 +475,7 @@ void Kleo::KeySelectionDialog::setUpUI(Options options, const QString &initialQu
if (qApp) { if (qApp) {
QSize dialogSize(sizeHint()); QSize dialogSize(sizeHint());
KConfigGroup dialogConfig(KSharedConfig::openConfig(), "Key Selection Dialog"); KConfigGroup dialogConfig(KSharedConfig::openStateConfig(), "Key Selection Dialog");
dialogSize = dialogConfig.readEntry("Dialog size", dialogSize); dialogSize = dialogConfig.readEntry("Dialog size", dialogSize);
const QByteArray headerState = dialogConfig.readEntry("header", QByteArray()); const QByteArray headerState = dialogConfig.readEntry("header", QByteArray());
if (!headerState.isEmpty()) { if (!headerState.isEmpty()) {
...@@ -507,7 +507,7 @@ void Kleo::KeySelectionDialog::init(bool rememberChoice, bool extendedSelection, ...@@ -507,7 +507,7 @@ void Kleo::KeySelectionDialog::init(bool rememberChoice, bool extendedSelection,
Kleo::KeySelectionDialog::~KeySelectionDialog() Kleo::KeySelectionDialog::~KeySelectionDialog()
{ {
disconnectSignals(); disconnectSignals();
KConfigGroup dialogConfig(KSharedConfig::openConfig(), "Key Selection Dialog"); KConfigGroup dialogConfig(KSharedConfig::openStateConfig(), "Key Selection Dialog");
dialogConfig.writeEntry("Dialog size", size()); dialogConfig.writeEntry("Dialog size", size());
dialogConfig.writeEntry("header", mKeyListView->header()->saveState()); dialogConfig.writeEntry("header", mKeyListView->header()->saveState());
dialogConfig.sync(); dialogConfig.sync();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment