[gnome-system-monitor] Use short process name for process dialog title
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Use short process name for process dialog title
- Date: Sun, 3 Jun 2018 05:47:57 +0000 (UTC)
commit c68a2b8247270f549eead02f8b18f7972ca0bfb3
Author: Robert Roth <robert roth off gmail com>
Date: Sun Jun 3 08:47:31 2018 +0300
Use short process name for process dialog title
src/procdialogs.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index e6017ba1..1154e0c0 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -74,7 +74,7 @@ procdialog_create_kill_dialog (GsmApplication *app, int signal)
&selected_process);
std::string *process_name = &selected_process->name;
- std::string short_process_name = process_name->substr(0, process_name->find(" "));
+ std::string short_process_name = process_name->substr(0, process_name->find(" -"));
switch (signal) {
case SIGKILL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]