From: asl Date: Thu, 6 Oct 2005 07:04:52 +0000 (+0000) Subject: PAL9807 - some dialogs in VISU must be non-modal X-Git-Tag: ForTest_3_1_0a2~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=656fa4a9dd4d8fe9e5fd69078eebf8c4b6896cb8;p=modules%2Fvisu.git PAL9807 - some dialogs in VISU must be non-modal --- diff --git a/src/VISUGUI/VisuGUI_DialogRunner.cxx b/src/VISUGUI/VisuGUI_DialogRunner.cxx index f8e15e86..993c3fdb 100644 --- a/src/VISUGUI/VisuGUI_DialogRunner.cxx +++ b/src/VISUGUI/VisuGUI_DialogRunner.cxx @@ -29,15 +29,12 @@ int VisuGUI_DialogRunner::run( const bool modal ) if( myInLoop || !myDlg ) return -1; - qDebug( "start" ); if( modal ) return myDlg->exec(); myInLoop = true; myDlg->show(); - qDebug( "enter loop" ); qApp->enter_loop(); - qDebug( "after loop" ); return myDlg->result(); } diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index c2fb731e..10716c36 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -36,19 +36,6 @@ int runAndWait( QDialog* dlg, const bool modal ) { VisuGUI_DialogRunner r( dlg ); return r.run( modal ); -/* - if( modal ) - return dlg->exec(); - - dlg->show(); - - qDebug( "enter loop" ); - qApp->enter_loop(); - qDebug( "end of loop" ); - - int res = dlg->result(); - qDebug( QString( "Result : %1" ).arg( res ) ); - return dlg->result();*/ } namespace VISU