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:
Michael Schuster 2019-09-16 20:08:29 +02:00 committed by GitHub
commit 0845f25f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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