]> err.no Git - systemd/commitdiff
systemadm: ignore entry activation on empty string
authorLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 14:21:08 +0000 (16:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 May 2010 14:21:08 +0000 (16:21 +0200)
systemadm.vala

index ac4c19ef652c857030094ca907955a7b905cea68..c5c90b34af23e7090b559feb88d3c4f4c7df16f9 100644 (file)
@@ -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",