mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 07:54:49 +03:00
Fix bad connect/disconnects.
This commit is contained in:
parent
8390b0b930
commit
3cc2e1a968
1 changed files with 5 additions and 3 deletions
|
@ -212,10 +212,12 @@ void Application::slotLogout()
|
|||
|
||||
void Application::slotAccountStateRemoved(AccountState *accountState)
|
||||
{
|
||||
disconnect(accountState, SIGNAL(stateChanged(int)), _gui, SLOT(slotAccountStateChanged()));
|
||||
disconnect(accountState, SIGNAL(stateChanged(int)), this, SLOT(slotAccountStateChanged(int)));
|
||||
connect(accountState->quotaInfo(), SIGNAL(quotaUpdated(qint64,qint64)),
|
||||
_gui, SLOT(slotRefreshQuotaDisplay(qint64,qint64)));
|
||||
if (_gui) {
|
||||
disconnect(accountState, SIGNAL(stateChanged(int)), _gui, SLOT(slotAccountStateChanged()));
|
||||
disconnect(accountState->quotaInfo(), SIGNAL(quotaUpdated(qint64,qint64)),
|
||||
_gui, SLOT(slotRefreshQuotaDisplay(qint64,qint64)));
|
||||
}
|
||||
}
|
||||
|
||||
void Application::slotAccountStateAdded(AccountState *accountState)
|
||||
|
|
Loading…
Reference in a new issue