[gnome-boxes/gnome-3-20] wizard: Reset source page after creation
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/gnome-3-20] wizard: Reset source page after creation
- Date: Mon, 9 May 2016 17:12:27 +0000 (UTC)
commit 4e28b17a37e603173b6c6e2316a577bb8629d5ce
Author: Pavel Grunt <pgrunt redhat com>
Date: Sat Apr 23 18:35:43 2016 +0200
wizard: Reset source page after creation
Reset wizard source page to MAIN after creation is done.
https://bugzilla.gnome.org/show_bug.cgi?id=758837
src/wizard.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index b971607..0cc8343 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -110,10 +110,12 @@ private class Boxes.Wizard: Gtk.Stack, Boxes.UI {
case WizardPage.LAST:
create.begin ((obj, result) => {
- if (create.end (result))
+ if (create.end (result)) {
window.set_state (UIState.COLLECTION);
- else
+ wizard_source.page = SourcePage.MAIN;
+ } else {
window.notificationbar.display_error (_("Box creation failed"));
+ }
});
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]