Salome HOME
PAL9807 - some dialogs in VISU must be non-modal
authorasl <asl@opencascade.com>
Thu, 6 Oct 2005 07:04:52 +0000 (07:04 +0000)
committerasl <asl@opencascade.com>
Thu, 6 Oct 2005 07:04:52 +0000 (07:04 +0000)
src/VISUGUI/VisuGUI_DialogRunner.cxx
src/VISUGUI/VisuGUI_Prs3dTools.h

index f8e15e861d93f3f7db6a2b535e66b054fd98f694..993c3fdb1641bdb157feff9409b4ba592b443e5e 100644 (file)
@@ -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();
 }
 
index c2fb731e4f868a6eb789375b6cc006cc4f75ff78..10716c3680cff6de7637acd25ecefd3dfa42419f 100644 (file)
@@ -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