Commit 193439ed authored by Rohit Yadav's avatar Rohit Yadav

MainWindow.cpp: Bugfix #240, Fixes VLMC crashes on Mac when switched from...

MainWindow.cpp: Bugfix #240, Fixes VLMC crashes on Mac when switched from fullscreen to normal window mode.
Because of a bug in Qt 4.7.x for mac, we're required to turn off UnifiedTitleAndToolbarOnMac before making MainWindow fullscreen and re-enable it when toggling to normal window. For more information pl. refer: https://bugreports.qt.nokia.com//browse/QTBUG-16274
parent eefec878
......@@ -727,10 +727,16 @@ MainWindow::zoomOut()
void
MainWindow::on_actionFullscreen_triggered( bool checked )
{
if ( checked )
if ( checked && !isFullScreen() )
{
setUnifiedTitleAndToolBarOnMac( false );
showFullScreen();
}
else
{
setUnifiedTitleAndToolBarOnMac( true );
showNormal();
}
}
void
......
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