systemadm: ignore entry activation on empty string

This commit is contained in:
Lennart Poettering 2010-05-16 16:21:08 +02:00
parent 416f4a8457
commit 92aa6f3633

View 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",