Reset tooltip in objects list when no item is hovered
This commit is contained in:
parent
9dc6699229
commit
951f9c1dab
@ -297,13 +297,18 @@ void ObjectList::set_tooltip_for_item(const wxPoint& pt)
|
||||
wxDataViewItem item;
|
||||
wxDataViewColumn* col;
|
||||
HitTest(pt, item, col);
|
||||
if (!item) return;
|
||||
|
||||
/* GetMainWindow() return window, associated with wxDataViewCtrl.
|
||||
* And for this window we should to set tooltips.
|
||||
* Just this->SetToolTip(tooltip) => has no effect.
|
||||
*/
|
||||
|
||||
if (!item)
|
||||
{
|
||||
GetMainWindow()->SetToolTip(""); // hide tooltip
|
||||
return;
|
||||
}
|
||||
|
||||
if (col->GetTitle() == " " && GetSelectedItemsCount()<2)
|
||||
GetMainWindow()->SetToolTip(_(L("Right button click the icon to change the object settings")));
|
||||
else if (col->GetTitle() == _("Name"))
|
||||
|
Loading…
Reference in New Issue
Block a user