timebasedpanel: check if node is the same
Minor optimization.
This commit is contained in:
@@ -125,6 +125,10 @@ TimeRuler *TimeBasedPanel::ruler() const
|
||||
|
||||
void TimeBasedPanel::ConnectViewerNode(ViewerOutput *node)
|
||||
{
|
||||
if (widget_->GetConnectedNode() == node) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (widget_->GetConnectedNode()) {
|
||||
disconnect(widget_->GetConnectedNode(), &ViewerOutput::MediaNameChanged, this, &TimeBasedPanel::SetSubtitle);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user