diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-17 16:26:15 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-21 11:18:53 +0300 |
commit | 5b73fd8d6223ba8fd0c31641e02998592c0cff76 (patch) | |
tree | 2b489b4492341bcc81280e3a25a22e98c10a5727 /src | |
parent | 9879167fc325559d972822ac515cad852b565334 (diff) |
Fix copy private link url
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/shareusergroupwidget.cpp | 3 | ||||
-rw-r--r-- | src/gui/shareusergroupwidget.ui | 6 |
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><html><head/><body><p>You can direct people to this shared file or folder <a href="private link menu"><span style=" text-decoration: underline">by giving them a private link</span></a>.</p></body></html></string> + <string notr="true"/> </property> <property name="wordWrap"> <bool>true</bool> |