Bug 246596 - Muon hangs when repositories can't be updated
Summary: Muon hangs when repositories can't be updated
Status: RESOLVED FIXED
Alias: None
Product: muon
Classification: Applications
Component: muon (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Jonathan Thomas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 12:02 UTC by Alvaro Manuel Recio Perez
Modified: 2010-08-04 04:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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