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;