diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp index d00d1854cd2ae..61c05b8d8c796 100644 --- a/src/gui/tray/activitylistmodel.cpp +++ b/src/gui/tray/activitylistmodel.cpp @@ -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(); });