From 45632986a43f71288d2ea61412c753bb078a6d99 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sun, 2 Aug 2020 16:56:33 +0200 Subject: [PATCH] SystemMonitor: Try to keep focus in 'Stacks' --- Applications/SystemMonitor/ProcessStacksWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Applications/SystemMonitor/ProcessStacksWidget.cpp b/Applications/SystemMonitor/ProcessStacksWidget.cpp index dce6cd6a7b..906e8a8e12 100644 --- a/Applications/SystemMonitor/ProcessStacksWidget.cpp +++ b/Applications/SystemMonitor/ProcessStacksWidget.cpp @@ -60,5 +60,8 @@ void ProcessStacksWidget::refresh() return; } - m_stacks_editor->set_text(file->read_all()); + auto new_text = file->read_all(); + if (m_stacks_editor->text() != new_text) { + m_stacks_editor->set_text(new_text); + } }