зеркало из https://github.com/nextcloud/desktop.git
Simply pass AccountPtr to updateFileTagModel
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
20a4915e7c
Коммит
b8b8b480aa
|
@ -80,6 +80,7 @@ void FileDetails::setLocalPath(const QString &localPath)
|
||||||
|
|
||||||
const auto account = _folder->accountState()->account();
|
const auto account = _folder->accountState()->account();
|
||||||
_sharingAvailable = account->capabilities().shareAPI();
|
_sharingAvailable = account->capabilities().shareAPI();
|
||||||
|
updateFileTagModel(account);
|
||||||
|
|
||||||
Q_EMIT fileChanged();
|
Q_EMIT fileChanged();
|
||||||
}
|
}
|
||||||
|
@ -167,10 +168,8 @@ FileTagModel *FileDetails::fileTagModel() const
|
||||||
return _fileTagModel.get();
|
return _fileTagModel.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileDetails::updateFileTagModel(const Folder * const folder)
|
void FileDetails::updateFileTagModel(const AccountPtr &account)
|
||||||
{
|
{
|
||||||
Q_ASSERT(folder);
|
|
||||||
const auto account = folder->accountState()->account();
|
|
||||||
Q_ASSERT(account);
|
Q_ASSERT(account);
|
||||||
|
|
||||||
const auto serverRelPath = QString(folder->remotePathTrailingSlash() + name());
|
const auto serverRelPath = QString(folder->remotePathTrailingSlash() + name());
|
||||||
|
|
|
@ -66,7 +66,7 @@ signals:
|
||||||
private slots:
|
private slots:
|
||||||
void refreshFileDetails();
|
void refreshFileDetails();
|
||||||
void updateLockExpireString();
|
void updateLockExpireString();
|
||||||
void updateFileTagModel(const OCC::Folder * const folder);
|
void updateFileTagModel(const OCC::AccountPtr &account);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString _localPath;
|
QString _localPath;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче