]> git.sesse.net Git - vlc/commitdiff
[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 e3ed5a61827aed9a8c252f4f0235a014b784230f..d0be2e9c8d1641ac05b2752d7d550dc66525eabf 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 */