From e4adab2698a68cf8d86b79788e8e392ca6b35442 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Fri, 11 Jul 2014 20:04:33 -0400 Subject: [PATCH] Debugger: Fix minor issue noted in #11003. - Reset tooltip when it's no longer needed (i.e. if the file path changes). Otherwise, we'd erroneously show the old tooltip if the new path was short enough to no longer be truncated, as would often happen after locating a missing source file. --- .../debugger/user_interface/gui/team_window/TeamWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp index a32a69b479..67a59783b0 100644 --- a/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp +++ b/src/apps/debugger/user_interface/gui/team_window/TeamWindow.cpp @@ -1356,8 +1356,10 @@ TeamWindow::_UpdateSourcePathState() if (!truncatedText.IsEmpty() && truncatedText != sourceText) { fSourcePathView->SetToolTip(sourceText); fSourcePathView->SetText(truncatedText); - } else + } else { fSourcePathView->SetText(sourceText); + fSourcePathView->SetToolTip(NULL); + } }