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 685780 - properties: Switch to 'System' tab for VM under construction
properties: Switch to 'System' tab for VM under construction
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: properties
unspecified
Other All
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-09 02:00 UTC by Zeeshan Ali
Modified: 2016-03-31 13:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
properties: Switch to 'System' tab for VM under construction (1.61 KB, patch)
2012-10-09 02:00 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2012-10-09 02:00:03 UTC
See patch
Comment 1 Zeeshan Ali 2012-10-09 02:00:05 UTC
Created attachment 226096 [details] [review]
properties: Switch to 'System' tab for VM under construction

Switch to 'System' tab automatically when going from wizard to
properties. The assumption here is that when users want to customize the
box before creation, its usually the system properties they want to edit.
Comment 2 Christophe Fergeau 2012-10-09 09:55:37 UTC
Review of attachment 226096 [details] [review]:

Minor comment, but looks good

::: src/properties.vala
@@ +167,3 @@
+            current_page = (previous_ui_state == UIState.WIZARD) ? PropertiesPage.SYSTEM : PropertiesPage.LOGIN;
+        } else
+            current_page = PropertiesPage.LOGIN;

With bug #684233 fixed, 'machine' cannot be NULL there (?)
Comment 3 Zeeshan Ali 2012-10-09 16:03:22 UTC
(In reply to comment #2)
> Review of attachment 226096 [details] [review]:
> 
> Minor comment, but looks good
> 
> ::: src/properties.vala
> @@ +167,3 @@
> +            current_page = (previous_ui_state == UIState.WIZARD) ?
> PropertiesPage.SYSTEM : PropertiesPage.LOGIN;
> +        } else
> +            current_page = PropertiesPage.LOGIN;
> 
> With bug #684233 fixed, 'machine' cannot be NULL there (?)

1. That bug is not exactly fixed but only worked around atm, i-e machine is null when creating non-VMs.
2. This null check is more testing if the machine is a LibvirtMachine and we'd want that even when bug#684233 is fixed as we don't want to switch to system tab for non-VMs.
Comment 4 Zeeshan Ali 2012-10-09 16:07:27 UTC
Attachment 226096 [details] pushed as 40acaab - properties: Switch to 'System' tab for VM under construction