Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-05-28 18:14:57 +0300
committerOlivier Goffart <olivier@woboq.com>2018-05-30 11:51:17 +0300
commit1434fa51399366ea3b66daa875ed26be789f68ab (patch)
tree1b94afac2591434927f0637c39a96d2a3f5f7972 /src/gui/sharedialog.cpp
parent252484e875d47ab0813e20049e90157581d6a7af (diff)
Share dialog: use the original name and not the virtual file name
When sharing a virtual file, we should actually use the original file name not the virtual file name Issue: #6461
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r--src/gui/sharedialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp
index 1cca346f9..7bad3743d 100644
--- a/src/gui/sharedialog.cpp
+++ b/src/gui/sharedialog.cpp
@@ -81,8 +81,7 @@ ShareDialog::ShareDialog(QPointer<AccountState> accountState,
}
// Set filename
- QFileInfo lPath(_localPath);
- QString fileName = lPath.fileName();
+ QString fileName = QFileInfo(_sharePath).fileName();
_ui->label_name->setText(tr("%1").arg(fileName));
QFont f(_ui->label_name->font());
f.setPointSize(f.pointSize() * 1.4);