2
0
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:
John Preston
2015-03-24 18:49:07 +03:00
parent b5d3580150
commit 489b151d49
4 changed files with 36 additions and 6 deletions

View File

@@ -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();