chiark / gitweb /
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 ac4c19e..c5c90b3 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",