mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
Disable options in share dialog if account state changes.
Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
parent
e07c472057
commit
35114cf45c
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue