Display sharees on the first show of the share dialog.
authorCamila San <hello@camila.codes>
Fri, 10 May 2019 14:56:03 +0000 (16:56 +0200)
committerCamila San <hello@camila.codes>
Mon, 27 May 2019 17:46:38 +0000 (19:46 +0200)
It was displaying them only when the current user would edit the share.

Signed-off-by: Camila San <hello@camila.codes>
src/gui/shareusergroupwidget.cpp

index 27d80ed7828ceaa251fb43aea190ae7ee270a9dc..d576b1edb1678aa39dae7c8c8a53630792551520 100644 (file)
@@ -202,6 +202,7 @@ void ShareUserGroupWidget::slotSharesFetched(const QList<QSharedPointer<Share>>
         connect(s, &ShareUserLine::visualDeletionDone, this, &ShareUserGroupWidget::getShares);
         s->setBackgroundRole(layout->count() % 2 == 0 ? QPalette::Base : QPalette::AlternateBase);
         layout->addWidget(s);
+        s->setVisible(true);
 
         x++;
         if (x <= 3) {