From b7d739ab3f8471fa5b67f2610568a873caf20823 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 15 Mar 2019 14:29:54 +0800 Subject: [PATCH] Fix build error Apparently the function is not available on Windows platforms. --- src/app/application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/application.cpp b/src/app/application.cpp index 124ed7942..7eef6bb3a 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -149,8 +149,10 @@ Application::Application(const QString &id, int &argc, char **argv) #if !defined(DISABLE_GUI) setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support setQuitOnLastWindowClosed(false); +#if !defined(Q_OS_WIN) setDesktopFileName("org.qbittorrent.qBittorrent"); #endif +#endif #if defined(Q_OS_WIN) && !defined(DISABLE_GUI) connect(this, &QGuiApplication::commitDataRequest, this, &Application::shutdownCleanup, Qt::DirectConnection);