Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix warnings

  • Loading branch information...
commit e0b8d25db77b62307e327cfe16545a7b1acf9b3a 1 parent c6e3c12
@simgunz authored
Showing with 7 additions and 6 deletions.
  1. +7 −6 dataengine/redshiftcontroller.cpp
View
13 dataengine/redshiftcontroller.cpp
@@ -33,9 +33,8 @@ RedshiftController::RedshiftController()
m_autoState(NotSetted),
m_runMode(Auto),
m_readyForStart(false),
- m_manualTemp(5000),
- m_manualMode(false)
-
+ m_manualMode(false),
+ m_manualTemp(5000)
{
m_process = new KProcess();
QDBusConnection dbus = QDBusConnection::sessionBus();
@@ -183,9 +182,11 @@ void RedshiftController::restart()
void RedshiftController::dataUpdated(const QString &sourceName, const Plasma::DataEngine::Data &data)
{
- m_currentActivity = data["Current"].toString();
- readConfig();
- applyChanges();
+ if(sourceName == "Status") {
+ m_currentActivity = data["Current"].toString();
+ readConfig();
+ applyChanges();
+ }
}
void RedshiftController::readConfig()
Please sign in to comment.
Something went wrong with that request. Please try again.