[gnome-boxes] properties: Always start with 'General' page
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] properties: Always start with 'General' page
- Date: Sun, 7 Dec 2014 23:43:39 +0000 (UTC)
commit 7b011de41d1279f80d1dc85c7dc57ce61718a14e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Dec 7 22:15:36 2014 +0000
properties: Always start with 'General' page
We go straight to 'System' page if coming from wizard state but now we
never arrive from wizard to properties so there is no need for code to
switch to 'System' page anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=741046
src/properties.vala | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/properties.vala b/src/properties.vala
index 6511de4..30b9fc2 100644
--- a/src/properties.vala
+++ b/src/properties.vala
@@ -28,7 +28,6 @@ private class Boxes.Properties: Gtk.Notebook, Boxes.UI {
remove (page);
var machine = window.current_item as Machine;
- var libvirt_machine = window.current_item as LibvirtMachine;
if (machine == null)
return;
@@ -46,10 +45,7 @@ private class Boxes.Properties: Gtk.Notebook, Boxes.UI {
});
}
- if (libvirt_machine != null)
- page = (previous_ui_state == UIState.WIZARD) ? PropertiesPage.SYSTEM : PropertiesPage.GENERAL;
- else
- page = PropertiesPage.GENERAL;
+ page = PropertiesPage.GENERAL;
}
public void setup_ui (AppWindow window, PropertiesWindow dialog) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]