Commit f54769eb authored by Erwan Tulou's avatar Erwan Tulou

skins2: cosmetic (a single addObserver is sufficient)

parent 7a851c17
......@@ -152,16 +152,10 @@ void VarText::set( const UString &rText )
pVarManager->getHelpText().addObserver( this );
}
if( m_text.find( "$T" ) != UString::npos ||
m_text.find( "$t" ) != UString::npos )
{
pVlcProc->getTimeVar().addObserver( this );
}
if( m_text.find( "$L" ) != UString::npos ||
m_text.find( "$l" ) != UString::npos )
{
pVlcProc->getTimeVar().addObserver( this );
}
if( m_text.find( "$D" ) != UString::npos ||
m_text.find( "$t" ) != UString::npos ||
m_text.find( "$L" ) != UString::npos ||
m_text.find( "$l" ) != UString::npos ||
m_text.find( "$D" ) != UString::npos ||
m_text.find( "$d" ) != UString::npos )
{
pVlcProc->getTimeVar().addObserver( this );
......
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