diff options
author | plonibarploni <[email protected]> | 2020-04-06 19:16:21 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-04-25 20:33:43 +0200 |
commit | 63bcff6012ad87ef0f5bdacda6b5d240f16e2bb4 (patch) | |
tree | e9035f393fb6228f4b7ac0641b77947c7129cc9a /src/interface.cpp | |
parent | 92d666e02ac668b0ff78136b19d34533d1846113 (diff) | |
download | mate-system-monitor-63bcff6012ad87ef0f5bdacda6b5d240f16e2bb4.tar.bz2 mate-system-monitor-63bcff6012ad87ef0f5bdacda6b5d240f16e2bb4.tar.xz |
Added support for actions on multiple processes
ported from gnome-system-monitor:
https://github.com/GNOME/gnome-system-monitor/commit/5cf1225d86929114d6f0424112fd2abc8880dc26
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index f7dbe84..3d259d2 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -785,7 +785,7 @@ update_sensitivity(ProcData *data) GtkAction *action; processes_sensitivity = (data->config.current_tab == PROCMAN_TAB_PROCESSES); - selected_sensitivity = (processes_sensitivity && data->selected_process != NULL); + selected_sensitivity = (processes_sensitivity && data->selection && gtk_tree_selection_count_selected_rows (data->selection) > 0); if(data->endprocessbutton) { /* avoid error on startup if endprocessbutton |