From 656fa4a9dd4d8fe9e5fd69078eebf8c4b6896cb8 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 6 Oct 2005 07:04:52 +0000 Subject: [PATCH] PAL9807 - some dialogs in VISU must be non-modal --- src/VISUGUI/VisuGUI_DialogRunner.cxx | 3 --- src/VISUGUI/VisuGUI_Prs3dTools.h | 13 ------------- 2 files changed, 16 deletions(-) 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 -- 2.39.2