瀏覽代碼

another fix for startup crash

Malte Veerman 10 年之前
父節點
當前提交
53d5505ad1
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fancontrol-gui/src/systemdcommunicator.cpp

+ 2 - 1
fancontrol-gui/src/systemdcommunicator.cpp

@@ -31,7 +31,6 @@ using namespace KAuth;
 
 SystemdCommunicator::SystemdCommunicator(QObject *parent) : QObject(parent)
 {
-    m_serviceName = "fancontrol";
     m_serviceInterface = nullptr;
     m_error = "Success";
 
@@ -40,6 +39,8 @@ SystemdCommunicator::SystemdCommunicator(QObject *parent) : QObject(parent)
                                             "org.freedesktop.systemd1.Manager",
                                             QDBusConnection::systemBus(),
                                             this);
+    setServiceName("fancontrol");
+
     serviceExists();
 }