From 1e75871aacc2a2f2fa4939604365beb230d93992 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Wed, 27 May 2026 12:50:20 +0300 Subject: [PATCH] Add option to fetch unmodified object IB-8823 Signed-off-by: Raul Metsma --- client/DocumentModel.cpp | 8 +++++++- common | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/DocumentModel.cpp b/client/DocumentModel.cpp index 0e04ea5af..51d208a5f 100644 --- a/client/DocumentModel.cpp +++ b/client/DocumentModel.cpp @@ -20,10 +20,12 @@ #include "DocumentModel.h" #include "Application.h" +#include "Configuration.h" #include "dialogs/FileDialog.h" #include "dialogs/WarningDialog.h" #include +#include #include #include @@ -93,7 +95,11 @@ bool DocumentModel::verifyFile(const QString &f) QStringLiteral("pps"), QStringLiteral("ppt"), QStringLiteral("pptx"), QStringLiteral("png"), QStringLiteral("jpg"), QStringLiteral("jpeg"), QStringLiteral("bmp"), QStringLiteral("ai"), QStringLiteral("gif"), QStringLiteral("ico"), QStringLiteral("ps"), QStringLiteral("psd"), QStringLiteral("tif"), QStringLiteral("tiff"), QStringLiteral("csv")}; - QJsonArray allowedExts = Application::confValue(QLatin1String("ALLOWED-EXTENSIONS")).toArray(defaultArray); +#ifdef CONFIG_URL + auto allowedExts = qApp->conf()->rawObject().value(QLatin1String("ALLOWED-EXTENSIONS")).toArray(defaultArray); +#else + auto allowedExts = defaultArray; +#endif if(allowedExts.contains(QJsonValue(QFileInfo(f).suffix().toLower()))) return true; WarningDialog::create() diff --git a/common b/common index 38737af0b..7cb22d089 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 38737af0b4079474c54146c2a7bf3845c35a7f5b +Subproject commit 7cb22d0899c295f14dfe6039885c6ae9ee789252