mainwindow: ensure timelines are actually tabified

This commit is contained in:
itsmattkc
2023-02-17 14:16:07 -08:00
parent 491fbacfbc
commit d09e257523
+7 -2
View File
@@ -603,10 +603,15 @@ void MainWindow::FolderPanelCloseRequested()
TimelinePanel* MainWindow::AppendTimelinePanel()
{
TimelinePanel *previous = nullptr;
if (!timeline_panels_.empty()) {
previous = timeline_panels_.last();
}
TimelinePanel* panel = AppendPanelInternal(QStringLiteral("TimelinePanel"), timeline_panels_);
if (timeline_panels_.size() > 1) {
timeline_panels_.last()->addDockWidgetAsTab(panel);
if (previous) {
previous->addDockWidgetAsTab(panel);
} else {
panel->SetSignalInsteadOfClose(false);
}