Commit 79aad2eb authored by Friedemann Kleint's avatar Friedemann Kleint

CodePaster: Fix listing of

Skip multiple left-boxes (mobile section).
Reviewed-by: default avatarLeandro T. C. Melo <>
Rubber-stamped-by: dt
Task-number: QTCREATORBUG-3118
parent 71d98970
......@@ -250,7 +250,8 @@ static inline void padString(QString *s, int len)
static inline QStringList parseLists(QIODevice *io)
enum State { OutsideRecentPostList, InsideRecentPostBox, InsideRecentPost };
enum State { OutsideRecentPostList, InsideRecentPostList,
InsideRecentPostBox, InsideRecentPost };
QStringList rc;
QXmlStreamReader reader(io);
......@@ -282,7 +283,13 @@ static inline QStringList parseLists(QIODevice *io)
} else if ( == divElement) { // "<div>" state switching
switch (state) {
// Check on the contents as there are several lists.
case OutsideRecentPostList:
if (reader.attributes().value(classAttribute) == QLatin1String("content_left_title")
&& reader.readElementText() == QLatin1String("Recent Posts"))
state = InsideRecentPostList;
case InsideRecentPostList:
if (reader.attributes().value(classAttribute) == QLatin1String("content_left_box"))
state = InsideRecentPostBox;
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