[Qt] Fix the header menu popup when you have a header-state saved.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2008 07:52:56 +0000 (09:52 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2008 07:52:56 +0000 (09:52 +0200)
modules/gui/qt4/components/playlist/standardpanel.cpp

index e3ed5a6..d0be2e9 100644 (file)
@@ -89,10 +89,10 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
         /* Configure the size of the header */
         view->header()->resizeSection( 0, 200 );
         view->header()->resizeSection( 1, 80 );
-        view->header()->setSortIndicatorShown( true );
-        view->header()->setClickable( true );
-        view->header()->setContextMenuPolicy( Qt::CustomContextMenu );
     }
+    view->header()->setSortIndicatorShown( true );
+    view->header()->setClickable( true );
+    view->header()->setContextMenuPolicy( Qt::CustomContextMenu );
     getSettings()->endGroup();
 
     /* Connections for the TreeView */