mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Fix workingdir setting
This commit is contained in:
parent
7d5ecacad8
commit
a46759a946
@ -108,6 +108,7 @@ void settings::set(QString key, QString value)
|
||||
{
|
||||
XSqlQuery q;
|
||||
load_settings();
|
||||
QString origkey = key;
|
||||
|
||||
if (key == "workingdir") {
|
||||
if (portable_app() || !QDir(value).exists())
|
||||
@ -132,6 +133,6 @@ void settings::set(QString key, QString value)
|
||||
q.bindValue(0, value);
|
||||
q.bindValue(1, key);
|
||||
q.exec();
|
||||
setAction(key, value);
|
||||
setAction(origkey, value);
|
||||
TransCommit();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user