Fixes share users/groups widget.

- Existing sharees where not being displayed.

Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
Camila San 2018-07-23 17:24:25 +02:00
parent 55b0b46bb6
commit 7aff1e27c0
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -66,7 +66,7 @@ ShareUserGroupWidget::ShareUserGroupWidget(AccountPtr account,
setObjectName("SharingDialogUG"); // required as group for saveGeometry call setObjectName("SharingDialogUG"); // required as group for saveGeometry call
_ui->setupUi(this); _ui->setupUi(this);
_ui->scrollArea->setVisible(false); //_ui->scrollArea->setVisible(false);
//Is this a file or folder? //Is this a file or folder?
_isFile = QFileInfo(localPath).isFile(); _isFile = QFileInfo(localPath).isFile();
@ -243,7 +243,10 @@ void ShareUserGroupWidget::slotSharesFetched(const QList<QSharedPointer<Share>>
} }
if (!layout->isEmpty()) { if (!layout->isEmpty()) {
_ui->scrollArea->setVisible(true);
layout->addStretch(1); layout->addStretch(1);
} else {
_ui->scrollArea->setVisible(false);
} }
minimumSize.rwidth() += layout->spacing(); minimumSize.rwidth() += layout->spacing();