aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-20 21:33:48 +0100
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-20 21:38:55 +0100
commitfd3c34973595573d5dea9aeba0a251a37264d30d (patch)
treea358e1f8a0b16e2619fa6beadb376a1b8801d0e6
parent6c6318b63bdaec9dedf5bf3e8a9ae1db1df8058f (diff)
Check Q_OS_UNIX define instead
-rw-r--r--src/frontend/qt_sdl/main.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 646777c..9ada19b 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -3474,12 +3474,11 @@ void emuStop()
MelonApplication::MelonApplication(int& argc, char** argv)
: QApplication(argc, argv)
{
-#ifndef __APPLE__
+#if !defined(Q_OS_APPLE)
setWindowIcon(QIcon(":/melon-icon"));
-#endif
-
-#ifdef !defined(__APPLE__) && !defined(__WIN32__)
- setDesktopFileName(QString("net.kuribo64.melonDS"));
+ #if defined(Q_OS_UNIX)
+ setDesktopFileName(QString("net.kuribo64.melonDS"));
+ #endif
#endif
}