Fix problem of closing windows in detached subwindow mode

This commit is contained in:
jfmcarreira committed 2015-04-09 15:37:15 +01:00
1 parent d8f483c656
commit 0b59709839
8 files changed
+62 -34

No files matched your search

+12 -12
View File
@@ -698,17 +698,17 @@ QSize VideoSubWindow::sizeHint( const QSize & maxSize ) const
return isize;
}
Void VideoSubWindow::closeEvent( QCloseEvent *event )
{
Bool bAccept = m_bIsPlaying ? false : true;
if( bAccept )
{
event->accept();
}
else
{
event->ignore();
}
}
//Void VideoSubWindow::closeEvent( QCloseEvent *event )
//{
// Bool bAccept = m_bIsPlaying ? false : true;
// if( bAccept )
// {
// event->accept();
// }
// else
// {
// event->ignore();
// }
//}
} // NAMESPACE