mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
Set invalid filename dialog mode in activity list model
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
aaf06535d2
commit
598f2c95f5
1 changed files with 4 additions and 1 deletions
|
@ -729,9 +729,12 @@ void ActivityListModel::slotTriggerDefaultAction(const int activityIndex)
|
|||
const auto fileLocation = activity._syncFileItemStatus == SyncFileItem::FileNameInvalidOnServer
|
||||
? InvalidFilenameDialog::FileLocation::NewLocalFile
|
||||
: InvalidFilenameDialog::FileLocation::Default;
|
||||
const auto invalidMode = activity._syncFileItemStatus == SyncFileItem::FileNameInvalidOnServer
|
||||
? InvalidFilenameDialog::InvalidMode::ServerInvalid
|
||||
: InvalidFilenameDialog::InvalidMode::SystemInvalid;
|
||||
|
||||
_currentInvalidFilenameDialog = new InvalidFilenameDialog(_accountState->account(), folder,
|
||||
folderDir.filePath(activity._file), fileLocation);
|
||||
folderDir.filePath(activity._file), fileLocation, invalidMode);
|
||||
connect(_currentInvalidFilenameDialog, &InvalidFilenameDialog::accepted, folder, [folder]() {
|
||||
folder->scheduleThisFolderSoon();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue