mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-28 11:42:42 +01:00
Prevent toolbar hiding. Fixes TWK-1046.
This commit is contained in:
parent
a7f8c80758
commit
8c85209bb9
@ -251,6 +251,10 @@ TomahawkWindow::setupToolBar()
|
||||
m_toolbar->setIconSize( QSize( 22, 22 ) );
|
||||
m_toolbar->setToolButtonStyle( Qt::ToolButtonIconOnly );
|
||||
m_toolbar->setStyleSheet( "border-bottom: 0px" );
|
||||
// If the toolbar is hidden accidentally it causes trouble on Unity because the user can't
|
||||
// easily bring it back (TWK-1046). So we just prevent the user from hiding the toolbar.
|
||||
// This should not affect Mac users.
|
||||
m_toolbar->setContextMenuPolicy( Qt::PreventContextMenu );
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
m_toolbar->installEventFilter( new WidgetDragFilter( m_toolbar ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user