After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677034 - wizard state is not fully reset when going back to the first screen
wizard state is not fully reset when going back to the first screen
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.5.x (unsupported)
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-05-29 14:27 UTC by Christophe Fergeau
Modified: 2016-03-31 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Do not show URL entry when going back after selecting source (3.92 KB, patch)
2012-06-08 22:20 UTC, Marc-Andre Lureau
reviewed Details | Review
Always reset wizard source page (902 bytes, patch)
2012-06-08 22:20 UTC, Marc-Andre Lureau
none Details | Review
Do not show URL entry when going back after selecting source (3.92 KB, patch)
2012-06-13 13:54 UTC, Marc-Andre Lureau
committed Details | Review
Always reset wizard source page when moving forward (1012 bytes, patch)
2012-06-13 13:54 UTC, Marc-Andre Lureau
committed Details | Review

Description Christophe Fergeau 2012-05-29 14:27:31 UTC
Start new VM creation
Click next
Choose 'enter URL'
Click on the 'back' button in the top bar (not the arrow left of 'Enter URL')
Click next

Result: the "Enter URL" screen is shown
Expected Result: the screen to select the source (URL, iso from disk, ...) is shown

I thought I had already filed this bug but couldn't find it even though I searched for it.
Comment 1 Marc-Andre Lureau 2012-06-08 22:20:39 UTC
Created attachment 216007 [details] [review]
Do not show URL entry when going back after selecting source

Show the same source list when going back, the item previously
selected will have the focus again.
Comment 2 Marc-Andre Lureau 2012-06-08 22:20:43 UTC
Created attachment 216008 [details] [review]
Always reset wizard source page

Always show the SourcePage.MAIN when switching to wizard SOURCE
page.
Comment 3 Zeeshan Ali 2012-06-11 20:52:34 UTC
Review of attachment 216007 [details] [review]:

> Show the same source list when going back, the item previously
> selected will have the focus again.

Sure but only if item was selected from the menu, not from 'URL' or 'File'. The current behavior was actually a fix in the times when when didn't have ready medias in the menu.
Comment 4 Marc-Andre Lureau 2012-06-13 13:54:29 UTC
Created attachment 216280 [details] [review]
Do not show URL entry when going back after selecting source

Show the same source list when going back, the item previously
selected will have the focus again.
Comment 5 Marc-Andre Lureau 2012-06-13 13:54:32 UTC
Created attachment 216281 [details] [review]
Always reset wizard source page when moving forward

Always show the SourcePage.MAIN when switching to wizard SOURCE
page from INTRODUCTION.
Comment 6 Zeeshan Ali 2012-06-13 21:27:07 UTC
Review of attachment 216281 [details] [review]:

ACK
Comment 7 Marc-Andre Lureau 2012-06-13 21:48:17 UTC
first patch is ack too?
Comment 8 Zeeshan Ali 2012-06-13 21:54:00 UTC
Review of attachment 216280 [details] [review]:

Looks good otherwise.

::: src/wizard.vala
@@ -104,3 +104,3 @@
     }
 
-    public Wizard () {
+    private void wizard_source_update_next () {

coding-style: private functions after public ones..

@@ -106,7 +106,7 @@
-    public Wizard () {
-        vm_creator = new VMCreator ();
-        wizard_source = new Boxes.WizardSource (media_manager);
... 4 more ...
+    private void wizard_source_update_next () {
+        next_button.sensitive = false;
+
... 4 more ...

shorter & more consistent w/ what we do below: next_button.sensitive = wizard_source.selected != null;
Comment 9 Marc-Andre Lureau 2012-06-13 22:39:54 UTC
Review of attachment 216280 [details] [review]:

::: src/wizard.vala
@@ -104,3 +104,3 @@
     }
 
-    public Wizard () {
+    private void wizard_source_update_next () {

I don't see the problem.

@@ -106,7 +106,7 @@
-    public Wizard () {
-        vm_creator = new VMCreator ();
-        wizard_source = new Boxes.WizardSource (media_manager);
... 4 more ...
+    private void wizard_source_update_next () {
+        next_button.sensitive = false;
+
... 4 more ...

ok
Comment 10 Marc-Andre Lureau 2012-06-17 23:05:18 UTC
Attachment 216280 [details] pushed as 5baba3e - Do not show URL entry when going back after selecting source
Attachment 216281 [details] pushed as 376af92 - Always reset wizard source page when moving forward