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
No known key found for this signature in database
GPG key ID: 7A4A6121E88E2AD4

View file

@ -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);
}
}
} }
} }