From 56a37ec62a4289cdae9b269efcb5a2fd82f62562 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 20 Aug 2024 16:22:49 +0800 Subject: [PATCH] Set invalid filename dialog mode in activity list model Signed-off-by: Claudio Cambra --- src/gui/tray/activitylistmodel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); });