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:
Rene Gollent
2014-07-11 20:07:25 -04:00
parent 2f1684345e
commit e4adab2698
@@ -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);
}
}