瀏覽代碼

Fix window icon on Linux

Plex-CLA-1.0-signed-off-by: Krzysztof Knapik <knapsu@gmail.com>
Krzysztof Knapik 6 年之前
父節點
當前提交
c1209fe2e1
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/main.cpp

+ 2 - 3
src/main.cpp

@@ -158,9 +158,8 @@ int main(int argc, char *argv[])
       qputenv("QT_SCALE_FACTOR", scale.toUtf8());
 
     QApplication app(newArgc, newArgv);
-#ifdef Q_OS_WIN
-    // Setting the icon on Windows is necessary but will break user
-    // ability to change icon on OSX
+#if defined(Q_OS_WIN) || defined(Q_OS_LINUX)
+    // Setting window icon on OSX will break user ability to change it
     app.setWindowIcon(QIcon(":/images/icon.png"));
 #endif