Commit 5bbe783e authored by Scott Wheeler's avatar Scott Wheeler

It's a little nicer like this.

svn path=/trunk/kdemultimedia/juk/; revision=308848
parent 3369040d
......@@ -261,14 +261,9 @@ QDataStream &operator>>(QDataStream &s, PlaylistSearch &search)
QDataStream &operator<<(QDataStream &s, const PlaylistSearch::Component &c)
{
s << c.isPatternSearch();
if(c.isPatternSearch())
s << c.pattern().pattern();
else
s << c.query();
s << c.isCaseSensitive()
s << c.isPatternSearch()
<< (c.isPatternSearch() ? c.pattern().pattern() : c.query())
<< c.isCaseSensitive()
<< c.columns()
<< Q_INT32(c.matchMode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment