diff options
author | Christian Kamm <mail@ckamm.de> | 2018-01-12 11:27:11 +0300 |
---|---|---|
committer | ckamm <mail@ckamm.de> | 2018-01-17 17:03:11 +0300 |
commit | a8a6f8227026fa4e6b96f11affd6a9586ab85c34 (patch) | |
tree | 93098eba2bcccaeaf1cd60ae0d91ac4224c7c56c | |
parent | 24d6fda3601eb40bd114251145b852edcfd7c247 (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
-rw-r--r-- | src/gui/sharelinkwidget.cpp | 4 |
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. |