소스 검색

fixed another crash

Malte Veerman 10 년 전
부모
커밋
17be2a4ebe
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      fancontrol-gui/src/systemdcommunicator.cpp

+ 5 - 4
fancontrol-gui/src/systemdcommunicator.cpp

@@ -32,13 +32,14 @@ using namespace KAuth;
 SystemdCommunicator::SystemdCommunicator(QObject *parent) : QObject(parent)
 SystemdCommunicator::SystemdCommunicator(QObject *parent) : QObject(parent)
 {
 {
     m_serviceName = "fancontrol";
     m_serviceName = "fancontrol";
+    m_serviceInterface = nullptr;
     m_error = "Success";
     m_error = "Success";
 
 
     m_managerInterface = new QDBusInterface("org.freedesktop.systemd1",
     m_managerInterface = new QDBusInterface("org.freedesktop.systemd1",
-                                     "/org/freedesktop/systemd1",
-                                     "org.freedesktop.systemd1.Manager",
-                                     QDBusConnection::systemBus(),
-                                     this);
+                                            "/org/freedesktop/systemd1",
+                                            "org.freedesktop.systemd1.Manager",
+                                            QDBusConnection::systemBus(),
+                                            this);
     serviceExists();
     serviceExists();
 }
 }