From 7dc1fcecc0018f68cb1362a44628792947ac74de Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 19 Dec 2013 18:41:44 -0500 Subject: Fix index of snapshots in type chooser --- src/systemadm.vala | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/systemadm.vala b/src/systemadm.vala index e59770fa..dd75d724 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -163,7 +163,7 @@ public class MainWindow : Window { unit_type_combo_box.append_text("Sockets"); unit_type_combo_box.append_text("Paths"); unit_type_combo_box.append_text("Timers"); - unit_type_combo_box.append_text("Snapshots"); + unit_type_combo_box.append_text("Snapshots"); // adjust index in server_on_snapshot unit_type_combo_box.set_active(0); // Show All unit_type_combo_box.changed.connect(unit_type_changed); @@ -997,8 +997,7 @@ public class MainWindow : Window { manager.create_snapshot(); if (unit_type_combo_box.get_active() != 0) - unit_type_combo_box.set_active(8); - + unit_type_combo_box.set_active(12); } catch (Error e) { show_error(e.message); } -- cgit v1.2.3