Warn if incompatible event loop is detected
This commit is contained in:
parent
0a011db483
commit
0b4ebcbae4
|
@ -35,6 +35,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include <QtWidgets/QSystemTrayIcon>
|
#include <QtWidgets/QSystemTrayIcon>
|
||||||
#include <QtCore/QStandardPaths>
|
#include <QtCore/QStandardPaths>
|
||||||
#include <QtCore/QProcess>
|
#include <QtCore/QProcess>
|
||||||
|
#include <QtCore/QAbstractEventDispatcher>
|
||||||
|
|
||||||
#include <kshell.h>
|
#include <kshell.h>
|
||||||
#include <ksandbox.h>
|
#include <ksandbox.h>
|
||||||
|
@ -854,6 +855,12 @@ void start() {
|
||||||
LOG(("Icon theme: %1").arg(QIcon::themeName()));
|
LOG(("Icon theme: %1").arg(QIcon::themeName()));
|
||||||
LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName()));
|
LOG(("Fallback icon theme: %1").arg(QIcon::fallbackThemeName()));
|
||||||
|
|
||||||
|
if (!QCoreApplication::eventDispatcher()->inherits(
|
||||||
|
"QEventDispatcherGlib")) {
|
||||||
|
g_warning("Qt is running without GLib event loop integration, "
|
||||||
|
"except various functionality to not to work.");
|
||||||
|
}
|
||||||
|
|
||||||
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
#ifndef DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||||
// tdesktop doesn't use xlib by itself,
|
// tdesktop doesn't use xlib by itself,
|
||||||
// but some libraries it depends on may do
|
// but some libraries it depends on may do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user