diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 12795cb..a3d1f98 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -94,7 +94,7 @@ Void plaYUVerApp::closeEvent( QCloseEvent *event ) switch( msgBoxCloseRet ) { case QMessageBox::Yes: - mdiArea->closeAllSubWindows(); + closeAll(); if( mdiArea->subWindowList().isEmpty() ) { writeSettings(); @@ -159,6 +159,11 @@ void plaYUVerApp::save() activeSubWindow()->save(); } +void plaYUVerApp::closeAll() +{ + mdiArea->closeAllSubWindows(); +} + // ----------------------- Modules Selection -------------------- void plaYUVerApp::selectModule( QAction *curr_action ) @@ -486,7 +491,7 @@ Void plaYUVerApp::createActions() actionCloseAll = new QAction( tr( "Close &All" ), this ); actionCloseAll->setStatusTip( tr( "Close all the windows" ) ); - connect( actionCloseAll, SIGNAL( triggered() ), mdiArea, SLOT( closeAllSubWindows() ) ); + connect( actionCloseAll, SIGNAL( triggered() ), this, SLOT( closeAll() ) ); // ------------ View ------------ diff --git a/source/app/plaYUVerApp.h b/source/app/plaYUVerApp.h index dcea3f3..d6368bf 100644 --- a/source/app/plaYUVerApp.h +++ b/source/app/plaYUVerApp.h @@ -57,6 +57,7 @@ private Q_SLOTS: //! File functions void open(); void save(); + void closeAll(); //! Playing functions void play();