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
path: root/src
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-09-17 16:26:15 +0300
committerHannah von Reth <vonreth@kde.org>2021-09-21 11:18:53 +0300
commit5b73fd8d6223ba8fd0c31641e02998592c0cff76 (patch)
tree2b489b4492341bcc81280e3a25a22e98c10a5727 /src
parent9879167fc325559d972822ac515cad852b565334 (diff)
Fix copy private link url
Diffstat (limited to 'src')
-rw-r--r--src/gui/shareusergroupwidget.cpp3
-rw-r--r--src/gui/shareusergroupwidget.ui6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp
index eb48376e4..00a6c2df4 100644
--- a/src/gui/shareusergroupwidget.cpp
+++ b/src/gui/shareusergroupwidget.cpp
@@ -90,6 +90,9 @@ ShareUserGroupWidget::ShareUserGroupWidget(AccountPtr account,
connect(_ui->shareeLineEdit, &QLineEdit::returnPressed, this, &ShareUserGroupWidget::slotLineEditReturn);
connect(_ui->privateLinkText, &QLabel::linkActivated, this, &ShareUserGroupWidget::slotPrivateLinkShare);
+ _ui->privateLinkText->setText(tr("You can direct people to this shared file or folder %1 by giving them a private link")
+ .arg(QStringLiteral("<a href=\"%1\"><span style=\"text-decoration: underline\">").arg(_privateLinkUrl)));
+
// By making the next two QueuedConnections we can override
// the strings the completer sets on the line edit.
connect(_completer, qOverload<const QModelIndex &>(&QCompleter::activated), this, &ShareUserGroupWidget::slotCompleterActivated,
diff --git a/src/gui/shareusergroupwidget.ui b/src/gui/shareusergroupwidget.ui
index 3344486f7..1e57219e2 100644
--- a/src/gui/shareusergroupwidget.ui
+++ b/src/gui/shareusergroupwidget.ui
@@ -94,8 +94,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>371</width>
- <height>148</height>
+ <width>377</width>
+ <height>185</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3"/>
@@ -105,7 +105,7 @@
<item>
<widget class="QLabel" name="privateLinkText">
<property name="text">
- <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;You can direct people to this shared file or folder &lt;a href=&quot;private link menu&quot;&gt;&lt;span style=&quot; text-decoration: underline&quot;&gt;by giving them a private link&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string notr="true"/>
</property>
<property name="wordWrap">
<bool>true</bool>