chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemadm: consider units with a job live
[elogind.git]
/
systemadm.vala
diff --git
a/systemadm.vala
b/systemadm.vala
index d4b760ad1f0e7cb70b6e621077dd941947170ad1..92ee503b1178e6df31f2dc363e48d33fb0ee0b0a 100644
(file)
--- a/
systemadm.vala
+++ b/
systemadm.vala
@@
-633,9
+633,9
@@
public class MainWindow : Window {
}
public bool unit_filter(TreeModel model, TreeIter iter) {
}
public bool unit_filter(TreeModel model, TreeIter iter) {
- string id, active_state;
+ string id, active_state
, job
;
- model.get(iter, 0, out id, 3, out active_state);
+ model.get(iter, 0, out id, 3, out active_state
, 5, out job
);
if (id == null)
return false;
if (id == null)
return false;
@@
-646,7
+646,7
@@
public class MainWindow : Window {
return true;
case 1:
return true;
case 1:
- return active_state != "inactive";
+ return active_state != "inactive"
|| job != ""
;
case 2:
return id.has_suffix(".service");
case 2:
return id.has_suffix(".service");