Gui: implement handling of Combo, Property and Tree view

This commit is contained in:
wmayer
2022-09-16 10:10:28 +02:00
parent 4fcddc71ab
commit dc6ce5a08b
5 changed files with 68 additions and 53 deletions

View File

@@ -80,7 +80,7 @@ QTabBar* ControlSingleton::findTabBar(QDockWidget* widget) const
if (count > 1) {
QList<QTabBar*> bars = getMainWindow()->findChildren<QTabBar*>();
for (auto it : bars) {
if (it->count() == count) {
if (it->count() <= count) {
for (int i = 0; i < count; i++) {
if (it->tabText(i) == widget->windowTitle()) {
return it;