summaryrefslogtreecommitdiff
path: root/systemadm.vala
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-16 16:21:08 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-16 16:21:08 +0200
commit92aa6f363360cbb4e300648e5cbdb6fe4cce1b57 (patch)
tree4b65caae97dee3a75faa1348a0043fbb492f4bb0 /systemadm.vala
parent416f4a8457da80453dd69e67753a0190d6ec26d5 (diff)
systemadm: ignore entry activation on empty string
Diffstat (limited to 'systemadm.vala')
-rw-r--r--systemadm.vala7
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",