Changeset 135 for smplayer/trunk/src/favorites.cpp
- Timestamp:
- Oct 24, 2012, 8:25:23 PM (13 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 133
- Property svn:mergeinfo changed
-
smplayer/trunk/src/favorites.cpp
r124 r135 175 175 } 176 176 177 bool Favorites::anyItemAvailable() { 178 if (f_list.isEmpty()) return false; 179 180 bool item_available = false; 181 for (int n = 0; n < f_list.count(); n++) { 182 if (!f_list[n].isSubentry()) { 183 item_available = true; 184 break; 185 } 186 } 187 188 return item_available; 189 } 190 177 191 void Favorites::next() { 178 192 qDebug("Favorites::next"); 193 194 if (!anyItemAvailable()) return; 179 195 180 196 int current = findFile(current_file); … … 197 213 void Favorites::previous() { 198 214 qDebug("Favorites::previous"); 215 216 if (!anyItemAvailable()) return; 199 217 200 218 int current = findFile(current_file);
Note:
See TracChangeset
for help on using the changeset viewer.