Proposed fix:

--- a/kcms/touchpad/src/kcm/touchpadconfigcontainer.cpp 2019-06-07 
18:08:11.000000000 +0200
+++ b/kcms/touchpad/src/kcm/touchpadconfigcontainer.cpp 2019-06-18 
14:20:11.853007246 +0200
@@ -42,7 +42,7 @@
         if (backend->getMode() == TouchpadInputBackendMode::XLibinput) {
             m_plugin = new TouchpadConfigLibinput(this, backend);
         }
-        else if (backend->getMode() == TouchpadInputBackendMode::XSynaptics) {
+        else {
             m_plugin = new TouchpadConfigXlib(this, backend);
         }
     } else if (KWindowSystem::isPlatformWayland()) {
diff -urN a/kcms/touchpad/src/touchpadbackend.h 
b/kcms/touchpad/src/touchpadbackend.h
--- a/kcms/touchpad/src/touchpadbackend.h       2019-06-07 18:08:11.000000000 
+0200
+++ b/kcms/touchpad/src/touchpadbackend.h       2019-06-18 14:18:57.915432036 
+0200
@@ -25,9 +25,10 @@
 #include <QVariantHash>
 
 enum class TouchpadInputBackendMode {
-    WaylandLibinput = 0,
-    XLibinput = 1,
-    XSynaptics = 2
+    Unset = 0,
+    WaylandLibinput = 1,
+    XLibinput = 2,
+    XSynaptics = 3
 };
 
 class Q_DECL_EXPORT TouchpadBackend : public QObject
@@ -35,7 +36,7 @@
     Q_OBJECT
 
 protected:
-    explicit TouchpadBackend(QObject *parent) : QObject(parent) {}
+    explicit TouchpadBackend(QObject *parent) : QObject(parent), 
m_mode(TouchpadInputBackendMode::Unset) {}
     void setMode(TouchpadInputBackendMode mode);
 
 public:


which will create the Synaptics backend as m_plugin in case of no touchpad (as 
in Plasma 5.15), which will show a message 'No touchpad found' and disable all 
controls.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832099

Title:
  systemsettings5 crashed with SIGSEGV in
  TouchpadConfigContainer::sizeHint()

To manage notifications about this bug go to:
https://bugs.launchpad.net/systemsettings/+bug/1832099/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to