[Pkg-owncloud-commits] [owncloud-client] 38/94: Link shares: Change default share name #6298
Sandro Knauß
hefee at debian.org
Thu Mar 29 11:12:12 UTC 2018
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch upstream
in repository owncloud-client.
commit a8a6f8227026fa4e6b96f11affd6a9586ab85c34
Author: Christian Kamm <mail at ckamm.de>
Date: Fri Jan 12 09:27:11 2018 +0100
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
---
src/gui/sharelinkwidget.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gui/sharelinkwidget.cpp b/src/gui/sharelinkwidget.cpp
index 3742db3..938f6b7 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.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list