diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2018-05-28 18:14:57 +0300 |
---|---|---|
committer | Olivier Goffart <olivier@woboq.com> | 2018-05-30 11:51:17 +0300 |
commit | 1434fa51399366ea3b66daa875ed26be789f68ab (patch) | |
tree | 1b94afac2591434927f0637c39a96d2a3f5f7972 /src/gui/sharedialog.cpp | |
parent | 252484e875d47ab0813e20049e90157581d6a7af (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.cpp | 3 |
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); |