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