wayland: fix check for creating input method connection
Previously code was if socket fd is greater then 0, then we start
process, but new code in 05ebe676d2
reversed logic. So this
made it not start input method at all.
This commit is contained in:
parent
69adaf64df
commit
57086c341c
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ void ApplicationWayland::startInputMethod(const QString &executable)
|
|||
|
||||
const QString program = arguments.takeFirst();
|
||||
int socket = dup(waylandServer()->createInputMethodConnection());
|
||||
if (socket >= 0) {
|
||||
if (socket < 0) {
|
||||
qWarning("Failed to create the input method connection");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue