Browse Source

Merge pull request #10319 from eszlari/patch-1

Linux/Wayland: make window title bar icon work
adaptive-webui-19844
Mike Tzou 6 years ago committed by GitHub
parent
commit
4ce3cda676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/app/application.cpp

4
src/app/application.cpp

@ -125,6 +125,7 @@ Application::Application(const QString &id, int &argc, char **argv)
qRegisterMetaType<Log::Msg>("Log::Msg"); qRegisterMetaType<Log::Msg>("Log::Msg");
setApplicationName("qBittorrent"); setApplicationName("qBittorrent");
setOrganizationDomain("qbittorrent.org");
validateCommandLineParameters(); validateCommandLineParameters();
const QString profileDir = m_commandLineArgs.portableMode const QString profileDir = m_commandLineArgs.portableMode
@ -146,6 +147,9 @@ Application::Application(const QString &id, int &argc, char **argv)
#if !defined(DISABLE_GUI) #if !defined(DISABLE_GUI)
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
setQuitOnLastWindowClosed(false); setQuitOnLastWindowClosed(false);
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
setDesktopFileName("org.qbittorrent.qBittorrent");
#endif
#endif #endif
#if defined(Q_OS_WIN) && !defined(DISABLE_GUI) #if defined(Q_OS_WIN) && !defined(DISABLE_GUI)

Loading…
Cancel
Save