Skip to content

Commit 9e91c3b

Browse files
committed
Fix corner case of Qt-only build with use_qt=FALSE in config
This is possible if a mixed GTK/Qt build was installed previously. In that case, Audacious would fail to start (and there's no --qt command-line option in a Qt-only build either).
1 parent 8bd3a30 commit 9e91c3b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libaudcore/runtime.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,16 @@ EXPORT void aud_init()
304304

305305
if (!mainloop_type_set)
306306
{
307-
#ifdef USE_QT
307+
#if defined(USE_QT) && defined(USE_GTK)
308308
if (aud_get_bool("use_qt"))
309309
aud_set_mainloop_type(MainloopType::Qt);
310310
else
311-
#endif
312311
aud_set_mainloop_type(MainloopType::GLib);
312+
#elif defined(USE_QT)
313+
aud_set_mainloop_type(MainloopType::Qt);
314+
#else
315+
aud_set_mainloop_type(MainloopType::GLib);
316+
#endif
313317
}
314318

315319
chardet_init();

0 commit comments

Comments
 (0)