From eb74a46ab4691cf24365a39bd2a040798f8d69c5 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 78d45ae98..cdd0567e7 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 78d45ae983ed2c0d9bc4de5d31f78cd46d13a48c +Subproject commit cdd0567e7137f22b6d62da54368ec1827f087a7c