repo.or.cz
/
gmpc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
ed17409
)
Fixed patch from bug 2937
author
Qball Cow
<qball@sarine.nl>
Sun, 20 Jun 2010 11:56:45 +0000 (13:56 +0200)
committer
Qball Cow
<qball@sarine.nl>
Sun, 20 Jun 2010 11:56:45 +0000 (13:56 +0200)
src/gmpc-mpddata-model.gob
patch
|
blob
|
blame
|
history
diff --git
a/src/gmpc-mpddata-model.gob
b/src/gmpc-mpddata-model.gob
index
ad2b8fc
..
1f30c46
100644
(file)
--- a/
src/gmpc-mpddata-model.gob
+++ b/
src/gmpc-mpddata-model.gob
@@
-1002,6
+1002,16
@@
end:
val = (ca == NULL)?((cb==NULL)?0:-1):1;
}
}
+
+ if (val == 0 &&
+ a->type == MPD_DATA_TYPE_SONG &&
+ b->type == MPD_DATA_TYPE_SONG &&
+ a->song->file &&
+ b->song->file)
+ {
+ val = strcmp (a->song->file, b->song->file);
+ }
+
g_value_unset(&va);
g_value_unset(&vb);
return fact*val;