mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Pseudo fix for #422
This commit is contained in:
parent
8afc02dd4e
commit
d4903c0f3d
@ -78,7 +78,8 @@ void SaveProjectDialog::on_buttonBox_clicked(QAbstractButton *button)
|
||||
void SaveProjectDialog::accept()
|
||||
{
|
||||
TempConfig tempConfig;
|
||||
tempConfig.set("dir.projects", ui->projectsDirEdit->text().toUtf8().constData())
|
||||
Config()->setDirProjects(ui->projectsDirEdit->text().toUtf8().constData());
|
||||
tempConfig.set("dir.projects", Config()->getDirProjects())
|
||||
.set("prj.simple", ui->simpleCheckBox->isChecked())
|
||||
.set("prj.files", ui->filesCheckBox->isChecked())
|
||||
.set("prj.git", ui->gitCheckBox->isChecked())
|
||||
|
@ -71,7 +71,6 @@ QString Configuration::getDirProjects()
|
||||
|
||||
void Configuration::setDirProjects(const QString &dir)
|
||||
{
|
||||
Core()->setConfig("dir.projects", dir);
|
||||
s.setValue("dir.projects", dir);
|
||||
}
|
||||
|
||||
@ -286,4 +285,4 @@ void Configuration::setConfig(const QString &key, const QVariant &value)
|
||||
}
|
||||
|
||||
Core()->setConfig(key, value);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user