summaryrefslogtreecommitdiff
path: root/src/interface.cpp
diff options
context:
space:
mode:
authorplonibarploni <[email protected]>2020-04-06 19:16:21 -0400
committerraveit65 <[email protected]>2020-04-25 20:33:43 +0200
commit63bcff6012ad87ef0f5bdacda6b5d240f16e2bb4 (patch)
treee9035f393fb6228f4b7ac0641b77947c7129cc9a /src/interface.cpp
parent92d666e02ac668b0ff78136b19d34533d1846113 (diff)
downloadmate-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.cpp2
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