Bug 246596

Summary: Muon hangs when repositories can't be updated
Product: [Applications] muon Reporter: Alvaro Manuel Recio Perez <amrecio>
Component: muonAssignee: Jonathan Thomas <echidnaman>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alvaro Manuel Recio Perez 2010-08-03 12:02:05 UTC
Version:           unspecified (using KDE 4.4.95) 
OS:                Linux

Using Muon 0.4.0.

When Muon can't update the repositories after clicking the "Check for Updates" button, the user can't return to the main screen of the application. "Cancel" on the "Updating software sources" does nothing.

Reproducible: Always

Steps to Reproduce:
1. Open Muon and click "Check for Updates".
2. Somehow disrupt the update process (disconnect from the network, mess with the apt locking mechanism,...).

Actual Results:  
The updating process never completes. Clicking "Cancel" does nothing.

Expected Results:  
Muon should inform the user that an error ocurred. Clicking "Cancel" should return to the main screen.

OS: Linux (x86_64) release 2.6.32-24-generic
Compiler: cc
Comment 1 Jonathan Thomas 2010-08-04 04:49:09 UTC
SVN commit 1158907 by jmthomas:

Subclass MuonMainWindow's errorOccurred function so that we can properly return from errors (Such as the UserCancelError, or AuthError). This occurred when I split the error handling functionality out into a class that a future update-centric GUI could share.
BUG:246596


 M  +8 -0      MainWindow.cpp  
 M  +1 -0      MainWindow.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1158907