[baobab] When canceling we should not switch to the result page
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] When canceling we should not switch to the result page
- Date: Wed, 1 Aug 2012 19:27:33 +0000 (UTC)
commit 045890396bb998e7c9d0067514664f55fc404c68
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Aug 1 12:23:17 2012 +0200
When canceling we should not switch to the result page
src/baobab-window.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-window.vala b/src/baobab-window.vala
index bd168aa..6c21178 100644
--- a/src/baobab-window.vala
+++ b/src/baobab-window.vala
@@ -525,16 +525,18 @@ namespace Baobab {
}
scan_completed_handler = scanner.completed.connect(() => {
- set_ui_state (UIPage.RESULT, false);
try {
scanner.finish();
} catch (IOError.CANCELLED e) {
// Handle cancellation silently
scanner.clear ();
+ return;
} catch (Error e) {
var primary = _("Could not scan folder \"%s\" or some of the folders it contains.").printf (scanner.directory.get_parse_name ());
message (primary, e.message, Gtk.MessageType.WARNING);
}
+
+ set_ui_state (UIPage.RESULT, false);
});
clear_message ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]