Commit 978a70d5 authored by Niko Sams's avatar Niko Sams
Browse files

automatically expand watches after adding a watch

BUG: 278652
parent 3da6029d
......@@ -204,6 +204,9 @@ Variable* Watches::add(const QString& expression)
model(), this, expression);
appendChild(v);
v->attachMaybe();
if (childCount() == 1 && !isExpanded()) {
setExpanded(true);
}
return v;
}
......@@ -217,6 +220,9 @@ Variable *Watches::addFinishResult(const QString& convenienceVarible)
model(), this, convenienceVarible, "$ret");
appendChild(finishResult_);
finishResult_->attachMaybe();
if (childCount() == 1 && !isExpanded()) {
setExpanded(true);
}
return finishResult_;
}
......
Supports Markdown
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