mainwindow/timelinepanel: closing a timeline will close a sequence entirely

UI detail.
This commit is contained in:
itsmattkc
2020-04-07 03:07:43 +10:00
parent 9f89f57090
commit cf04cad238
7 changed files with 92 additions and 21 deletions
+11
View File
@@ -150,4 +150,15 @@ void PanelManager::SetPanelsLocked(bool locked)
locked_ = locked;
}
void PanelManager::PanelDestroyed()
{
PanelWidget* panel = static_cast<PanelWidget*>(sender());
focus_history_.removeOne(panel);
if (last_focused_panel_ == panel) {
last_focused_panel_ = focus_history_.isEmpty() ? nullptr : focus_history_.first();
}
}
OLIVE_NAMESPACE_EXIT