소스 검색

minimized fans are added to config file again

Malte Veerman 10 년 전
부모
커밋
2cc416a331
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      share/src/loader.cpp
  2. 0 1
      share/src/sensors.cpp

+ 1 - 1
share/src/loader.cpp

@@ -313,7 +313,7 @@ void Loader::createConfigFile()
         foreach (QObject *fan, hwmon->pwmFans())
         {
             PwmFan *pwmFan = qobject_cast<PwmFan *>(fan);
-            if (pwmFan->active() && pwmFan->hasTemp() && pwmFan->temp())
+            if (pwmFan->hasTemp() && pwmFan->temp())
             {
                 usedFans << pwmFan;
                 if (!usedHwmons.contains(pwmFan->temp()->parent()))

+ 0 - 1
share/src/sensors.cpp

@@ -103,7 +103,6 @@ PwmFan::PwmFan(Hwmon *parent, uint index) : Fan(parent, index)
     connect(this, SIGNAL(maxPwmChanged()), parent, SLOT(updateConfig()));
     connect(this, SIGNAL(minStartChanged()), parent, SLOT(updateConfig()));
     connect(this, SIGNAL(minStopChanged()), parent, SLOT(updateConfig()));
-    connect(this, SIGNAL(activeChanged()), parent, SLOT(updateConfig()));
     connect(&m_testTimer, SIGNAL(timeout()), this, SLOT(continueTesting()));
 
     if (QDir(parent->path()).isReadable())