mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
os x and linux dialog path remember through executions
This commit is contained in:
@@ -431,7 +431,11 @@ QString saveFileName(const QString &title, const QString &filter, const QString
|
||||
if (!name.isEmpty() && name.at(0) == QChar::fromLatin1('.')) {
|
||||
name = filedialogDefaultName(prefix, name);
|
||||
} else if (dir.path() != qsl(".")) {
|
||||
cSetDialogLastPath(dir.absolutePath());
|
||||
QString path = dir.absolutePath();
|
||||
if (path != cDialogLastPath()) {
|
||||
cSetDialogLastPath(path);
|
||||
Local::writeUserSettings();
|
||||
}
|
||||
}
|
||||
|
||||
return filedialogGetSaveFile(name, title, filter, name) ? name : QString();
|
||||
|
Reference in New Issue
Block a user