diff --git a/application/src/battery.h b/application/src/battery.h index d8981ae..fc2cb5f 100644 --- a/application/src/battery.h +++ b/application/src/battery.h @@ -53,7 +53,7 @@ private: QFile* chargeFile; QFile* chargerConnectedFile; QFile* stateFile; - QFile* chargingEnabledFile = Q_NULLPTR; + QFile* chargingEnabledFile; Settings* settings; // Default values: diff --git a/application/src/harbour-batterybuddy.cpp b/application/src/harbour-batterybuddy.cpp index e79e8d4..5c704a7 100644 --- a/application/src/harbour-batterybuddy.cpp +++ b/application/src/harbour-batterybuddy.cpp @@ -90,8 +90,6 @@ int main(int argc, char *argv[]) qInfo() << "Exiting..."; updater->stop(); - battery->blockSignals(true); - battery->setChargingEnabled(true); delete updater; delete battery;