Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/gui/integration/fileactionsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ void FileActionsModel::setAccountState(AccountState *accountState)
_accountState = accountState;
_accountUrl = _accountState->account()->url().toString();
Q_EMIT accountStateChanged();

if (!_localPath.isEmpty()) {
qCDebug(lcFileActions) << "Local path is set with" << _fileId << ", calling setupFileProperties().";
setupFileProperties();
}

if (!_fileId.isEmpty() && !_localPath.isEmpty()) {
qCDebug(lcFileActions) << "File id is set with" << _fileId << ", calling parseEndpoints().";
parseEndpoints();
}
}

QString FileActionsModel::localPath() const
Expand All @@ -108,7 +118,10 @@ void FileActionsModel::setLocalPath(const QString &localPath)
_localPath = localPath;

setupFileProperties();
parseEndpoints();
if (!_fileId.isEmpty()) {
qCDebug(lcFileActions) << "File id is set with" << _fileId << ", calling parseEndpoints().";
parseEndpoints();
}

Q_EMIT fileChanged();
}
Expand Down
Loading