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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user