Launchbox was displaying the description of the application into its tooltips
even if it meant displaying the same label twice. Fixes bug #5233. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35002 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f175afefc3
commit
83de0ccdec
@ -379,7 +379,8 @@ LaunchButton::_UpdateToolTip()
|
||||
if (fRef) {
|
||||
BString helper(fRef->name);
|
||||
if (fDescription.CountChars() > 0) {
|
||||
helper << "\n\n" << fDescription.String();
|
||||
if (fDescription != helper)
|
||||
helper << "\n\n" << fDescription.String();
|
||||
} else {
|
||||
BFile file(fRef, B_READ_ONLY);
|
||||
BAppFileInfo appFileInfo;
|
||||
@ -387,7 +388,8 @@ LaunchButton::_UpdateToolTip()
|
||||
if (appFileInfo.SetTo(&file) == B_OK
|
||||
&& appFileInfo.GetVersionInfo(&info,
|
||||
B_APP_VERSION_KIND) == B_OK
|
||||
&& strlen(info.short_info) > 0) {
|
||||
&& strlen(info.short_info) > 0
|
||||
&& helper.Compare(info.short_info) != 0) {
|
||||
helper << "\n\n" << info.short_info;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user