Commit 63490f7c authored by Wolfgang Bauer's avatar Wolfgang Bauer

Fix a wrong QUrl usage

QUrl::toString() returns the full Url including "file:/".
What is wanted here is the local directory path (without "file:/").
parent c65e9f64
...@@ -406,7 +406,7 @@ void NewTransferDialog::dialogAccepted() ...@@ -406,7 +406,7 @@ void NewTransferDialog::dialogAccepted()
//set the last directory //set the last directory
QString dir = m_destination.toLocalFile(); QString dir = m_destination.toLocalFile();
if (!QFileInfo(dir).isDir()) { if (!QFileInfo(dir).isDir()) {
dir = m_destination.adjusted(QUrl::RemoveFilename).toString(); dir = m_destination.adjusted(QUrl::RemoveFilename).toLocalFile();
} }
Settings::setLastDirectory(dir); Settings::setLastDirectory(dir);
Settings::self()->save(); Settings::self()->save();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment