Changeset 45213c5d5c123a6ae14167ee58e86297cdec9de4

Show
Ignore:
Timestamp:
05/12/08 16:40:47 (3 months ago)
Author:
Jean-Baptiste Kempf <jb@videolan.org>
git-committer:
Jean-Baptiste Kempf <jb@videolan.org> 1210603247 -0700
git-parent:

[f3bd025005bca6b75665db4471819ede04684ce1]

git-author:
Lukas Durfina <lukas.durfina@gmail.com> 1210569869 +0200
Message:

playlist startup sorting fix

playlist startup sorting fix

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/qt4/components/playlist/playlist_model.cpp

    rdb52627 r45213c5  
    716716    int i_flag = 0; 
    717717 
     718    // FIXME: Disable sorting on startup by ignoring 
     719    // first call of sorting caused by showing dialog 
     720    // see: standardpanel.cpp:65 
     721    static bool b_first_time = true; 
     722    if( b_first_time ) 
     723    { 
     724        b_first_time = false; 
     725        return; 
     726    } 
     727 
    718728#define CHECK_COLUMN( meta )                        \ 
    719729{                                                   \ 
  • modules/gui/qt4/components/playlist/standardpanel.cpp

    r83fb335 r45213c5  
    6464    view = new QVLCTreeView( 0 ); 
    6565    view->setSortingEnabled( true ); 
    66     view->sortByColumn( -1, Qt::AscendingOrder ); 
    67     view->setModel(model); 
     66    view->sortByColumn( 0 , Qt::AscendingOrder ); 
     67    view->setModel( model ); 
    6868    view->setIconSize( QSize( 20, 20 ) ); 
    6969    view->setAlternatingRowColors( true );