Fix update code to correctly check subiwndow type
This commit is contained in:
1 parent
f1d65d112d
commit
0164d2a5c0
1 file changed
+1
-3
+1
-3
@@ -488,11 +488,9 @@ Void plaYUVerApp::update()
|
||||
{
|
||||
m_pcCurrentSubWindow = activeSubWindow;
|
||||
|
||||
switch( m_pcCurrentSubWindow->getCategory() )
|
||||
if( m_pcCurrentSubWindow->getCategory() & SubWindowHandle::VIDEO_SUBWINDOW )
|
||||
{
|
||||
case SubWindowHandle::VIDEO_SUBWINDOW:
|
||||
m_pcCurrentVideoSubWindow = qobject_cast<VideoSubWindow*>( m_pcCurrentSubWindow );
|
||||
break;
|
||||
}
|
||||
|
||||
setWindowTitle( QApplication::applicationName() + " - " + m_pcCurrentSubWindow->getWindowName() );
|
||||
|
||||
Reference in new issue
Block a user