Skip to content

Commit 2296135

Browse files
committed
Improve last folder saving
1 parent ce391ab commit 2296135

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

application/systemfiledialog.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ void SystemFileDialog::onFileDialogAccepted()
7777

7878
void SystemFileDialog::onFileDialogFinished()
7979
{
80-
globalPrefs->setLastFolderUrl(m_dialog->directoryUrl());
81-
emit finished();
80+
const auto lastFolderPath = m_dialog->directory().absolutePath();
81+
globalPrefs->setLastFolderUrl(QUrl::fromLocalFile(lastFolderPath));
82+
8283
disconnect();
84+
emit finished();
8385
}
8486

8587
QUrl SystemFileDialog::standardLocationPath(StandardLocation location)

0 commit comments

Comments
 (0)