1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 17:14:00 +02:00

Try to fix bug with Accounts widget hiding on Windows 7.

This commit is contained in:
Teo Mrnjavac
2012-11-14 11:49:42 +01:00
parent 89b77b66d1
commit 40966c07d8

View File

@@ -120,7 +120,10 @@ AccountsToolButton::mousePressEvent( QMouseEvent* event )
QPoint myPos = mapToGlobal( rect().bottomRight() );
m_popup->anchorAt( myPos );
m_popup->setArrowOffset( rect().width() / 2 );
m_popup->show();
if ( !m_popup->isVisible() )
m_popup->show();
else
m_popup->hide();
event->accept();
}
QToolButton::mousePressEvent( event );