Commit 512fe4b6 authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlInspector: fixed bug in crumblepath

parent d24ebfed
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment