Commit 11eb5b51 authored by ipkiss's avatar ipkiss
Browse files

* skins2/src/top_window.cpp: Hide the tooltip when the string to display becomes empty

parent 95ff93b2
...@@ -439,9 +439,18 @@ void TopWindow::onTooltipChange( const CtrlGeneric &rCtrl ) ...@@ -439,9 +439,18 @@ void TopWindow::onTooltipChange( const CtrlGeneric &rCtrl )
// Check that the control is the active one // Check that the control is the active one
if( m_pLastHitControl && m_pLastHitControl == &rCtrl ) if( m_pLastHitControl && m_pLastHitControl == &rCtrl )
{ {
// Set the tooltip text variable if( rCtrl.getTooltipText().size() )
VarManager *pVarManager = VarManager::instance( getIntf() ); {
pVarManager->getTooltipText().set( rCtrl.getTooltipText() ); // Set the tooltip text variable
VarManager *pVarManager = VarManager::instance( getIntf() );
pVarManager->getTooltipText().set( rCtrl.getTooltipText() );
m_rWindowManager.showTooltip();
}
else
{
// Nothing to display, so hide the tooltip
m_rWindowManager.hideTooltip();
}
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment