mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #1240 from ivan-cukic/ivan/remote-size-retrieved-race-condition
Race condition in the remote size loading logic
This commit is contained in:
commit
0845f25f70
@ -42,6 +42,8 @@ OwncloudAdvancedSetupPage::OwncloudAdvancedSetupPage()
|
||||
, _localFolderValid(false)
|
||||
, _progressIndi(new QProgressIndicator(this))
|
||||
, _remoteFolder()
|
||||
, _rSize(-1)
|
||||
, _rSelectedSize(-1)
|
||||
{
|
||||
_ui.setupUi(this);
|
||||
|
||||
@ -368,6 +370,8 @@ void OwncloudAdvancedSetupPage::slotQuotaRetrieved(const QVariantMap &result)
|
||||
{
|
||||
_rSize = result["size"].toDouble();
|
||||
_ui.lSyncEverythingSizeLabel->setText(tr("(%1)").arg(Utility::octetsToString(_rSize)));
|
||||
|
||||
updateStatus();
|
||||
}
|
||||
|
||||
qint64 OwncloudAdvancedSetupPage::availableLocalSpace() const
|
||||
|
||||
Loading…
Reference in New Issue
Block a user