forked from qt-creator/qt-creator
QmlInspector: fixed bug in crumblepath
This commit is contained in:
@@ -53,7 +53,7 @@ void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<
|
||||
|
||||
m_isEmpty = path.isEmpty();
|
||||
if (m_isEmpty) {
|
||||
pushElement(tr("[no context]"));
|
||||
pushElement(tr("[no context]"),QVariant(-1));
|
||||
} else {
|
||||
for (int i = 0; i < path.count(); i++)
|
||||
pushElement(path[i], QVariant(debugIds[i]));
|
||||
|
||||
@@ -758,9 +758,11 @@ void InspectorUi::setupDockWidgets()
|
||||
|
||||
void InspectorUi::crumblePathElementClicked(int debugId)
|
||||
{
|
||||
QList<int> l;
|
||||
l << debugId;
|
||||
selectItems(l);
|
||||
if (debugId != -1) {
|
||||
QList<int> l;
|
||||
l << debugId;
|
||||
selectItems(l);
|
||||
}
|
||||
}
|
||||
|
||||
bool InspectorUi::showExperimentalWarning()
|
||||
|
||||
Reference in New Issue
Block a user