--- a/src/primitives.cc Wed Jan 08 21:43:46 2014 +0200 +++ b/src/primitives.cc Wed Jan 08 23:52:25 2014 +0200 @@ -137,7 +137,7 @@ QString fname = m_files[m_i]; QFile f (fname); - if (f.open (QIODevice::ReadOnly)) + if (!f.open (QIODevice::ReadOnly)) continue; Primitive info; @@ -151,7 +151,7 @@ info.title = info.title.simplified(); - if (info.title[0] == '0') + if (Q_LIKELY (info.title[0] == '0')) { info.title.remove (0, 1); // remove 0 info.title = info.title.simplified();