diff options
author | Christian Kamm <mail@ckamm.de> | 2017-03-28 12:15:53 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-04-04 10:40:48 +0300 |
commit | a10fe84a83a6d8d8e6e64ef51a1835450673596e (patch) | |
tree | e4e2d014e4e284eb56190899225a8748e4ebc747 /src/gui | |
parent | 7d9c4d052cb280a1f2c792b30c641345273315a6 (diff) |
ShareDialog: Hide the detailed permissions if there is only one #5655
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/shareusergroupwidget.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp index e339d6a1c..56edc33e2 100644 --- a/src/gui/shareusergroupwidget.cpp +++ b/src/gui/shareusergroupwidget.cpp @@ -324,6 +324,11 @@ ShareWidget::ShareWidget(QSharedPointer<Share> share, QIcon icon(QLatin1String(":/client/resources/more.png")); _ui->permissionToolButton->setIcon(icon); + // If there's only a single entry in the detailed permission menu, hide it + if (menu->actions().size() == 1) { + _ui->permissionToolButton->hide(); + } + // Set the permissions checkboxes displayPermissions(); |