From 92aa6f363360cbb4e300648e5cbdb6fe4cce1b57 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 May 2010 16:21:08 +0200 Subject: [PATCH] systemadm: ignore entry activation on empty string --- systemadm.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/systemadm.vala b/systemadm.vala index ac4c19e..c5c90b3 100644 --- a/systemadm.vala +++ b/systemadm.vala @@ -785,8 +785,13 @@ public class MainWindow : Window { } public void on_unit_load() { + string t = unit_load_entry.get_text(); + + if (t == "") + return; + try { - var path = manager.load_unit(unit_load_entry.get_text()); + var path = manager.load_unit(t); Unit u = bus.get_object( "org.freedesktop.systemd1", -- 2.7.4