Skip to content

Commit d4c179c

Browse files
authored
Fix tabs not being active when restoring state (#101)
Regression introduced by 29ebc83
1 parent ff68ad9 commit d4c179c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DockAreaTabBar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void CDockAreaTabBar::insertTab(int Index, CDockWidgetTab* Tab)
345345
connect(Tab, SIGNAL(moved(const QPoint&)), this, SLOT(onTabWidgetMoved(const QPoint&)));
346346
Tab->installEventFilter(this);
347347
emit tabInserted(Index);
348-
if (Index <= d->CurrentIndex)
348+
if (Index <= d->CurrentIndex || d->CurrentIndex == -1)
349349
{
350350
setCurrentIndex(d->CurrentIndex + 1);
351351
}

0 commit comments

Comments
 (0)