Make sure to reset effect stack when closing project and track stack displayed

parent e258f612
......@@ -229,6 +229,11 @@ void AssetPanel::showEffectStack(const QString &itemName, const std::shared_ptr<
void AssetPanel::clearAssetPanel(int itemId)
{
if (itemId == -1) {
// closing project, reset panel
clear();
return;
}
ObjectId id = m_effectStackWidget->stackOwner();
if (id.first == ObjectType::TimelineClip && id.second == itemId) {
clear();
......
Markdown is supported
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