MediaConverter: If path is truncated, set a tooltip

This commit is contained in:
John Scipione
2013-08-31 05:06:50 -04:00
parent d1dd0b5889
commit 4dcf7ed2f5
@@ -877,6 +877,10 @@ MediaConverterWindow::TruncateOutputFolderPath()
fOutputFolder->TruncateString(&pathString, B_TRUNCATE_MIDDLE, maxWidth);
fOutputFolder->SetText(pathString.String());
if (fOutputFolder->StringWidth(path.Path()) > maxWidth)
fOutputFolder->SetToolTip(path.Path());
else
fOutputFolder->SetToolTip((const char*)NULL);
}