diff options
Diffstat (limited to 'systemadm.vala')
-rw-r--r-- | systemadm.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/systemadm.vala b/systemadm.vala index ac4c19ef65..c5c90b34af 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", |