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:
authorChristian Kamm <mail@ckamm.de>2018-01-12 11:27:11 +0300
committerckamm <mail@ckamm.de>2018-01-17 17:03:11 +0300
commita8a6f8227026fa4e6b96f11affd6a9586ab85c34 (patch)
tree93098eba2bcccaeaf1cd60ae0d91ac4224c7c56c /src/gui/sharelinkwidget.cpp
parent24d6fda3601eb40bd114251145b852edcfd7c247 (diff)
Link shares: Change default share name #6298
There's a 64 character limit and we don't want to accidentally exceed it. Eventually there might be server API for default share name generation. See owncloud/core#29913
Diffstat (limited to 'src/gui/sharelinkwidget.cpp')
-rw-r--r--src/gui/sharelinkwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp
index 3742db309..938f6b7ee 100644
--- a/src/gui/sharelinkwidget.cpp
+++ b/src/gui/sharelinkwidget.cpp
@@ -58,7 +58,9 @@ ShareLinkWidget::ShareLinkWidget(AccountPtr account,
//Is this a file or folder?
QFileInfo fi(localPath);
_isFile = fi.isFile();
- _ui->nameLineEdit->setText(tr("%1 link").arg(fi.fileName()));
+
+ // Note: the share name cannot be longer than 64 characters
+ _ui->nameLineEdit->setText(tr("Public link"));
// the following progress indicator widgets are added to layouts which makes them
// automatically deleted once the dialog dies.