Skip to content
Snippets Groups Projects
Commit c09616aa authored by David Schulz's avatar David Schulz Committed by hjk
Browse files

Debugger: Print invalid when QByteArray can not be converted...


...to a numeric value for encoded debugger values.

Change-Id: I9969ea01f50738210963fa08dc871edc90c1bae2
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 6eed8e38
No related branches found
No related tags found
No related merge requests found
......@@ -630,7 +630,10 @@ QString decodeData(const QByteArray &ba, int encoding)
return QString::fromUtf8(decodedBa);
}
case MillisecondsSinceEpoch: {
const qint64 ms = ba.toLongLong();
bool ok = false;
const qint64 ms = ba.toLongLong(&ok);
if (!ok)
return QLatin1String(ba);
QDateTime d;
d.setTimeSpec(Qt::UTC);
d.setMSecsSinceEpoch(ms);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment