summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Bauer <[email protected]>2017-11-08 23:19:09 +0100
committerWolfgang Bauer <[email protected]>2017-11-08 23:19:09 +0100
commit63490f7c5aad5d826a68c7f7613284c93c948704 (patch)
treebb2ca995ec2abe7111af9dd06b37751704ddf472
parentc65e9f646ee1a129cc74ea18aaf14008e344f5ed (diff)
Fix a wrong QUrl usage
QUrl::toString() returns the full Url including "file:/". What is wanted here is the local directory path (without "file:/").
-rw-r--r--ui/newtransferdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/newtransferdialog.cpp b/ui/newtransferdialog.cpp
index 04ef0a6..4bec0a3 100644
--- a/ui/newtransferdialog.cpp
+++ b/ui/newtransferdialog.cpp
@@ -406,7 +406,7 @@ void NewTransferDialog::dialogAccepted()
//set the last directory
QString dir = m_destination.toLocalFile();
if (!QFileInfo(dir).isDir()) {
- dir = m_destination.adjusted(QUrl::RemoveFilename).toString();
+ dir = m_destination.adjusted(QUrl::RemoveFilename).toLocalFile();
}
Settings::setLastDirectory(dir);
Settings::self()->save();