equal
deleted
inserted
replaced
98 TX_EXIT |
98 TX_EXIT |
99 } |
99 } |
100 |
100 |
101 /*! |
101 /*! |
102 Slot to be called data model has new data. |
102 Slot to be called data model has new data. |
|
103 Use cases: |
|
104 1) User renames a playlist. |
|
105 2) Song added or removed from playlist. |
103 */ |
106 */ |
104 void MpCollectionContainerPlaylists::dataReloaded() |
107 void MpCollectionContainerPlaylists::dataReloaded() |
105 { |
108 { |
106 TX_ENTRY |
109 TX_ENTRY |
107 MpCollectionListContainer::dataReloaded(); |
110 MpCollectionListContainer::dataReloaded(); |
108 if ( mCollectionContext == ECollectionContextPlaylistSongs ) { |
111 if ( mCollectionContext == ECollectionContextPlaylistSongs ) { |
109 // Playlist could have been renamed. |
112 // Playlist could have been renamed. |
110 QString details = mCollectionData->collectionTitle(); |
113 QString details = mCollectionData->collectionTitle(); |
111 mInfoBar->setHeading(details); |
114 mInfoBar->setHeading(details); |
|
115 if ( mCollectionData->count() > 1 ) { |
|
116 emit shuffleEnabled(true); |
|
117 } |
|
118 else { |
|
119 emit shuffleEnabled(false); |
|
120 } |
112 } |
121 } |
113 TX_EXIT |
122 TX_EXIT |
114 } |
123 } |
115 |
124 |
116 /*! |
125 /*! |