mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-13 15:45:42 +08:00
Ref T228, key needs to be added, not description
This commit is contained in:
@@ -31,6 +31,8 @@ namespace BlackGui
|
|||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::CApplicationCloseDialog)
|
ui(new Ui::CApplicationCloseDialog)
|
||||||
{
|
{
|
||||||
|
Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui");
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
this->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
this->setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||||
this->initSettingsView();
|
this->initSettingsView();
|
||||||
@@ -54,10 +56,10 @@ namespace BlackGui
|
|||||||
{
|
{
|
||||||
const QString description = m_settingsDescriptions[r];
|
const QString description = m_settingsDescriptions[r];
|
||||||
const QString key = m_settingsDictionary.key(description);
|
const QString key = m_settingsDictionary.key(description);
|
||||||
if (!key.isEmpty()) { saveKeys.append(description); }
|
if (!key.isEmpty()) { saveKeys.append(key); }
|
||||||
}
|
}
|
||||||
if (saveKeys.isEmpty()) { return; }
|
if (saveKeys.isEmpty()) { return; }
|
||||||
CStatusMessage msg = sApp->saveSettingsByKey(saveKeys);
|
const CStatusMessage msg = sApp->saveSettingsByKey(saveKeys);
|
||||||
if (msg.isFailure()) { CLogMessage::preformatted(msg); }
|
if (msg.isFailure()) { CLogMessage::preformatted(msg); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user