Commit 2a211837 authored by Jonas Eymann's avatar Jonas Eymann Committed by Nate Graham
Browse files

RemoteDesktopDialog: fix "withTouch" property mismatch

In RemoteDesktopDialog.qml, the property is called "withTouch".
Due to the mismatch, the whole dialog was not displayed as the property
could not be set.


(cherry picked from commit 36eecddb)
parent d4ee7b22
Pipeline #194923 passed with stage
in 49 seconds
......@@ -34,7 +34,7 @@ RemoteDesktopDialog::RemoteDesktopDialog(const QString &appName,
{"withMultipleScreenSharing", multiple},
{"withKeyboard", deviceTypes.testFlag(RemoteDesktopPortal::Keyboard)},
{"withPointer", deviceTypes.testFlag(RemoteDesktopPortal::Pointer)},
{"withTouchScreen", deviceTypes.testFlag(RemoteDesktopPortal::TouchScreen)},
{"withTouch", deviceTypes.testFlag(RemoteDesktopPortal::TouchScreen)},
};
const QString applicationName = Utils::applicationName(appName);
......@@ -63,7 +63,7 @@ RemoteDesktopPortal::DeviceTypes RemoteDesktopDialog::deviceTypes() const
types |= RemoteDesktopPortal::Keyboard;
if (m_theDialog->property("withPointer").toBool())
types |= RemoteDesktopPortal::Pointer;
if (m_theDialog->property("withTouchScreen").toBool())
if (m_theDialog->property("withTouch").toBool())
types |= RemoteDesktopPortal::TouchScreen;
return types;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment