chiark / gitweb /
systemadm: ignore entry activation on empty string
[elogind.git] / 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",