Changeset 45213c5d5c123a6ae14167ee58e86297cdec9de4
- 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
| rdb52627 |
r45213c5 |
|
| 716 | 716 | int i_flag = 0; |
|---|
| 717 | 717 | |
|---|
| | 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 | |
|---|
| 718 | 728 | #define CHECK_COLUMN( meta ) \ |
|---|
| 719 | 729 | { \ |
|---|
| r83fb335 |
r45213c5 |
|
| 64 | 64 | view = new QVLCTreeView( 0 ); |
|---|
| 65 | 65 | view->setSortingEnabled( true ); |
|---|
| 66 | | view->sortByColumn( -1, Qt::AscendingOrder ); |
|---|
| 67 | | view->setModel(model); |
|---|
| | 66 | view->sortByColumn( 0 , Qt::AscendingOrder ); |
|---|
| | 67 | view->setModel( model ); |
|---|
| 68 | 68 | view->setIconSize( QSize( 20, 20 ) ); |
|---|
| 69 | 69 | view->setAlternatingRowColors( true ); |
|---|