From: Lennart Poettering Date: Sun, 16 May 2010 14:21:08 +0000 (+0200) Subject: systemadm: ignore entry activation on empty string X-Git-Tag: 0.git+20100605+dfd8ee-1~13^2~3^2~27 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92aa6f363360cbb4e300648e5cbdb6fe4cce1b57;p=systemd systemadm: ignore entry activation on empty string --- diff --git a/systemadm.vala b/systemadm.vala index ac4c19ef..c5c90b34 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",