From f07b49288b532a7dcb88722398a8c0fb825f3cc2 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 20 Aug 2024 16:22:08 +0800 Subject: [PATCH] Add invalid mode enum to invalid filename dialog Signed-off-by: Claudio Cambra --- src/gui/invalidfilenamedialog.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gui/invalidfilenamedialog.h b/src/gui/invalidfilenamedialog.h index f2552e5fc1080..1477dd6451fa7 100644 --- a/src/gui/invalidfilenamedialog.h +++ b/src/gui/invalidfilenamedialog.h @@ -39,8 +39,17 @@ class InvalidFilenameDialog : public QDialog Default = 0, NewLocalFile, }; + enum class InvalidMode { + SystemInvalid, + ServerInvalid + }; - explicit InvalidFilenameDialog(AccountPtr account, Folder *folder, QString filePath, FileLocation fileLocation = FileLocation::Default, QWidget *parent = nullptr); + explicit InvalidFilenameDialog(AccountPtr account, + Folder *folder, + QString filePath, + FileLocation fileLocation = FileLocation::Default, + InvalidMode invalidMode = InvalidMode::SystemInvalid, + QWidget *parent = nullptr); ~InvalidFilenameDialog() override;