mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-06-01 19:34:09 +02: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
@ -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 New Issue
Block a user