forked from qt-creator/qt-creator
QmlObserver: Disable crumblepath if not active
This commit is contained in:
@@ -48,7 +48,7 @@ void ContextCrumblePath::updateContextPath(const QStringList &path, const QList<
|
||||
{
|
||||
Q_ASSERT(path.count() == debugIds.count());
|
||||
|
||||
clear();
|
||||
CrumblePath::clear();
|
||||
|
||||
m_isEmpty = path.isEmpty();
|
||||
if (m_isEmpty) {
|
||||
@@ -66,6 +66,11 @@ void ContextCrumblePath::addChildren(const QStringList &childrenNames, const QLi
|
||||
addChild(childrenNames[i], QVariant(childrenDebugIds[i]));
|
||||
}
|
||||
|
||||
void ContextCrumblePath::clear()
|
||||
{
|
||||
updateContextPath(QStringList(), QList<int>());
|
||||
}
|
||||
|
||||
bool ContextCrumblePath::isEmpty() const
|
||||
{
|
||||
return m_isEmpty;
|
||||
|
||||
Reference in New Issue
Block a user