forked from qt-creator/qt-creator
Debugger: Print invalid when QByteArray can not be converted...
...to a numeric value for encoded debugger values. Change-Id: I9969ea01f50738210963fa08dc871edc90c1bae2 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user