1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-08-15 19:31:44 +02:00

Disable options in share dialog if account state changes.

Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
Camila San
2019-04-12 11:52:02 +02:00
parent e07c472057
commit 35114cf45c

@@ -219,6 +219,7 @@ void ShareDialog::slotAdjustScrollWidgetSize()
ShareDialog::~ShareDialog() ShareDialog::~ShareDialog()
{ {
_linkWidgetList.clear();
delete _ui; delete _ui;
} }
@@ -327,6 +328,10 @@ void ShareDialog::slotAccountStateChanged(int state)
_userGroupWidget->setEnabled(enabled); _userGroupWidget->setEnabled(enabled);
} }
if(_linkWidgetList.size() > 0){
foreach(ShareLinkWidget *widget, _linkWidgetList){
widget->setEnabled(state);
}
}
} }
} }