aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/General/streambrowser/streamwindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/General/streambrowser/streamwindow.cpp b/src/plugins/General/streambrowser/streamwindow.cpp
index cfebc3469..83efe1dc5 100644
--- a/src/plugins/General/streambrowser/streamwindow.cpp
+++ b/src/plugins/General/streambrowser/streamwindow.cpp
@@ -350,8 +350,13 @@ void StreamWindow::readXml(QIODevice *input, QStandardItemModel *model)
server_type += xml.text().toString();
}
}
+
if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError)
{
+#ifdef Q_OS_WIN
+ qWarning("StreamWindow: xml error: %d: %s", (int)xml.lineNumber(), qPrintable(xml.errorString()));
+#else
qWarning("StreamWindow: xml error: %lld: %s", xml.lineNumber(), qPrintable(xml.errorString()));
+#endif
}
}