Git commit 7c133dbe38c46201d9e9692066a2d25cfa51e292 by Jonathan Thomas.
Committed on 25/11/2011 at 04:14.
Pushed by jmthomas into branch 'master'.
Apparently, desktop computers report having no A/C plug at all. (Maybe it doesn't count
power supplies). At any rate, don't show the plug message if the list of plugs is empty.
Git commit 7c133dbe38c4620 1d9e9692066a2d2 5cfa51e292 by Jonathan Thomas.
Committed on 25/11/2011 at 04:14.
Pushed by jmthomas into branch 'master'.
Apparently, desktop computers report having no A/C plug at all. (Maybe it doesn't count
power supplies). At any rate, don't show the plug message if the list of plugs is empty.
CCMAIL:<email address hidden>
M +7 -0 updater/ MainWindow. cpp
http:// commits. kde.org/ muon/7c133dbe38 c46201d9e969206 6a2d25cfa51e292
diff --git a/updater/ MainWindow. cpp b/updater/ MainWindow. cpp MainWindow. cpp MainWindow. cpp :setActionsEnab led(bool enabled) undoAction- >setEnabled( !m_backend- >isUndoStackEmp ty()); redoAction- >setEnabled( !m_backend- >isRedoStackEmp ty()); revertAction- >setEnabled( !m_backend- >isUndoStackEmp ty()); ->setEnabled( true);
index 73e6cb1..d18c6ef 100644
--- a/updater/
+++ b/updater/
@@ -238,6 +238,7 @@ void MainWindow:
m_
m_
m_
+ m_updaterWidget
}
void MainWindow: :checkForUpdate s() :closeHistoryDi alog() :checkPlugState () :Device> acAdapters = Solid:: Device: :listFromType( Solid:: DeviceInterface ::AcAdapter) ; isEmpty( )) { (true);
@@ -310,6 +311,12 @@ void MainWindow:
void MainWindow:
{
const QList<Solid:
+
+ if (acAdapters.
+ updatePlugState
+ return;
+ }
+
bool isPlugged = false;
foreach( Solid:: Device device_ac, acAdapters) {