forked from qt-creator/qt-creator
QML Inspector: Don't misinterpret objects with ID 0
The invalid ID is -1 and we shouldn't send 0 to the engine debug service by default as that will select some random object as context for expression evaluation. Change-Id: Ide245468f787cc449ff50ac846c7ff31620c01b4 Task-number: QTCREATORBUG-14931 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
void assignValue(const WatchData *data, const QString &expression, const QVariant &valueV);
|
||||
void updateWatchData(const WatchData &data);
|
||||
void watchDataSelected(quint64 id);
|
||||
void watchDataSelected(qint64 id);
|
||||
bool selectObjectInTree(int debugId);
|
||||
void addObjectWatch(int objectDebugId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user