forked from qt-creator/qt-creator
QmlDebugger: Fixing debugid hashes
Reviewed-by: Kai Koehne
This commit is contained in:
@@ -419,7 +419,7 @@ void ClientProxy::buildDebugIdHashRecursive(const QDeclarativeDebugObjectReferen
|
|||||||
int rev = 0;
|
int rev = 0;
|
||||||
|
|
||||||
// handle the case where the url contains the revision number encoded. (for object created by the debugger)
|
// handle the case where the url contains the revision number encoded. (for object created by the debugger)
|
||||||
static QRegExp rx("^file://(.*)_(\\d+):(\\d+)$");
|
static QRegExp rx("(.*)_(\\d+):(\\d+)$");
|
||||||
if (rx.exactMatch(filename)) {
|
if (rx.exactMatch(filename)) {
|
||||||
filename = rx.cap(1);
|
filename = rx.cap(1);
|
||||||
rev = rx.cap(2).toInt();
|
rev = rx.cap(2).toInt();
|
||||||
|
|||||||
Reference in New Issue
Block a user