viewerpanelbase: stop playback when panel is defocused

This commit is contained in:
itsmattkc
2022-08-21 10:02:44 -07:00
parent e7799c9284
commit 92949c50dd
5 changed files with 33 additions and 2 deletions
+5 -2
View File
@@ -28,7 +28,8 @@ PanelManager* PanelManager::instance_ = nullptr;
PanelManager::PanelManager(QObject *parent) :
QObject(parent),
locked_(false)
locked_(false),
suppress_changed_signal_(false)
{
}
@@ -165,7 +166,9 @@ void PanelManager::FocusChanged(QWidget *old, QWidget *now)
focus_history_.move(panel_index, 0);
}
emit FocusedPanelChanged(panel_cast_test);
if (!suppress_changed_signal_) {
emit FocusedPanelChanged(panel_cast_test);
}
}
break;