Commit 58c3a71f 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 5b072e8b
Pipeline #194922 passed with stage
in 2 minutes and 17 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