Skip to content

Commit 3040875

Browse files
committed
fix: possible issue on Qt6
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 19e9330 commit 3040875

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

QHotkey/qhotkey_x11.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,10 @@ quint32 QHotkeyPrivateX11::nativeKeycode(Qt::Key keycode, bool &ok)
132132

133133
#if QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)
134134
const QNativeInterface::QX11Application *x11Interface = qGuiApp->nativeInterface<QNativeInterface::QX11Application>();
135-
if (!x11Interface)
135+
if (!x11Interface) {
136136
return 0;
137+
}
138+
137139
Display *display = x11Interface->display();
138140
#else
139141
const bool x11Interface = QX11Info::isPlatformX11();

0 commit comments

Comments
 (0)