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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user