reccommends I plug in power adapter

Bug #894123 reported by Jordan Bradley
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
muon (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When I open the Update Manager it recommends that "It is safer to plug in the power adapter before updating." Obviously this is good advice, but this is a desktop machine and not a laptop.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: update-manager (not installed)
ProcVersionSignature: Ubuntu 3.1.0-2.3-generic 3.1.0
Uname: Linux 3.1.0-2-generic x86_64
ApportVersion: 1.26-0ubuntu1
Architecture: amd64
Date: Wed Nov 23 14:36:14 2011
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111121)
ProcEnviron:
 LANGUAGE=en_CA:en
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jordan Bradley (jordan-w-bradley) wrote :

I thought I was using update-manager with a Qt frontend but it's muon-updater

affects: update-manager (Ubuntu) → muon (Ubuntu)
Revision history for this message
Jonathan Thomas (echidnaman) wrote : [muon] updater: Apparently, desktop computers report having no A/C plug at all. (Maybe it doesn't count

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.

CCMAIL:<email address hidden>

M +7 -0 updater/MainWindow.cpp

http://commits.kde.org/muon/7c133dbe38c46201d9e9692066a2d25cfa51e292

diff --git a/updater/MainWindow.cpp b/updater/MainWindow.cpp
index 73e6cb1..d18c6ef 100644
--- a/updater/MainWindow.cpp
+++ b/updater/MainWindow.cpp
@@ -238,6 +238,7 @@ void MainWindow::setActionsEnabled(bool enabled)
     m_undoAction->setEnabled(!m_backend->isUndoStackEmpty());
     m_redoAction->setEnabled(!m_backend->isRedoStackEmpty());
     m_revertAction->setEnabled(!m_backend->isUndoStackEmpty());
+ m_updaterWidget->setEnabled(true);
 }

 void MainWindow::checkForUpdates()
@@ -310,6 +311,12 @@ void MainWindow::closeHistoryDialog()
 void MainWindow::checkPlugState()
 {
     const QList<Solid::Device> acAdapters = Solid::Device::listFromType(Solid::DeviceInterface::AcAdapter);
+
+ if (acAdapters.isEmpty()) {
+ updatePlugState(true);
+ return;
+ }
+
     bool isPlugged = false;

     foreach(Solid::Device device_ac, acAdapters) {

Changed in muon (Ubuntu):
status: New → Fix Committed
Revision history for this message
Jordan Bradley (jordan-w-bradley) wrote :

Cool. Thanks

Changed in muon (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.