Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Amarok
Commits
264b1221
Commit
264b1221
authored
Jul 08, 2011
by
Ralf Engels
Browse files
Fix crash in collection on startup
BUG:277277
parent
cca9bc33
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/browsers/CollectionSortFilterProxyModel.cpp
View file @
264b1221
...
...
@@ -57,9 +57,9 @@ CollectionSortFilterProxyModel::lessThan( const QModelIndex &left, const QModelI
CollectionTreeItem
*
rightItem
=
treeItem
(
right
);
// various artists and no label items are always at the top
if
(
leftItem
->
isVariousArtistItem
()
||
leftItem
->
isNoLabelItem
()
)
if
(
!
leftItem
||
leftItem
->
isVariousArtistItem
()
||
leftItem
->
isNoLabelItem
()
)
return
true
;
if
(
rightItem
->
isVariousArtistItem
()
||
rightItem
->
isNoLabelItem
()
)
if
(
!
rightItem
||
rightItem
->
isVariousArtistItem
()
||
rightItem
->
isNoLabelItem
()
)
return
false
;
if
(
leftItem
->
isTrackItem
()
&&
rightItem
->
isTrackItem
()
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment