Changeset e20319314d0ce591fa4ffa5a5f58a5e51b9f9a37
- Timestamp:
- 26/01/08 07:24:47
(10 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1201328687 +0000
- git-parent:
[ef26e8eadbfde35692b36a68d2f746c494cc2d78]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1201328687 +0000
- Message:
Qt4 - Fix segfault from previous commit, and read from the config only once and simplify.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ref26e8e |
re203193 |
|
| 57 | 57 | assert( model ); /* We need a model */ |
|---|
| 58 | 58 | |
|---|
| 59 | | /* No parent, should be the main one */ |
|---|
| | 59 | /* No parent, should be the 2 main ones */ |
|---|
| 60 | 60 | if( parentItem == NULL ) |
|---|
| 61 | 61 | { |
|---|
| 62 | | i_showflags = model->shownFlags(); |
|---|
| 63 | | updateColumnHeaders(); |
|---|
| | 62 | if( model->i_depth == DEPTH_SEL ) /* Selector Panel */ |
|---|
| | 63 | { |
|---|
| | 64 | item_col_strings.append( "" ); |
|---|
| | 65 | } |
|---|
| | 66 | else |
|---|
| | 67 | { |
|---|
| | 68 | i_showflags = config_GetInt( model->p_intf, "qt-pl-showflags" ); |
|---|
| | 69 | updateColumnHeaders(); |
|---|
| | 70 | } |
|---|
| 64 | 71 | } |
|---|
| 65 | 72 | else |
|---|
| … | … | |
| 69 | 76 | item_col_strings.append( "" ); |
|---|
| 70 | 77 | } |
|---|
| 71 | | msg_Dbg( model->p_intf, "PLItem created of type: %i", model->i_depth ); |
|---|
| 72 | 78 | } |
|---|
| 73 | 79 | |
|---|
| … | … | |
| 97 | 103 | { |
|---|
| 98 | 104 | item_col_strings.clear(); |
|---|
| 99 | | |
|---|
| 100 | | if( model->i_depth == DEPTH_SEL ) /* Selector Panel */ |
|---|
| 101 | | { |
|---|
| 102 | | item_col_strings.append( "" ); |
|---|
| 103 | | return; |
|---|
| 104 | | } |
|---|
| 105 | 105 | |
|---|
| 106 | 106 | for( int i_index=1; i_index <= VLC_META_ENGINE_ART_URL; i_index *= 2 ) |
|---|
| rc243a82 |
re203193 |
|
| 115 | 115 | QStringList mimeTypes() const; |
|---|
| 116 | 116 | |
|---|
| 117 | | int shownFlags() { return rootItem->i_showflags; } |
|---|
| | 117 | int shownFlags() { return rootItem->i_showflags; } |
|---|
| 118 | 118 | |
|---|
| 119 | 119 | private: |
|---|