Permalink
Browse files

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

  • Loading branch information...
1 parent 89b77b6 commit 40966c07d80fc4aaff1a650eb412d1698a1888de @teo teo committed Nov 14, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/widgets/AccountsToolButton.cpp
@@ -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 );

0 comments on commit 40966c0

Please sign in to comment.