소스 검색

refactored startup

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

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

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