]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
"system( rm -rf )" removed; qtx emthod is used
authorsln <sln@opencascade.com>
Thu, 29 Nov 2012 07:41:59 +0000 (07:41 +0000)
committersln <sln@opencascade.com>
Thu, 29 Nov 2012 07:41:59 +0000 (07:41 +0000)
src/SUIT/SUIT_Session.cxx

index 215416c870ecd554715db3d6681843b43542dd7c..9cb7c1a0233f429a12817ff09667807e657d3c22 100755 (executable)
@@ -799,13 +799,7 @@ void SUIT_Session::removeTmpFiles( const bool withBackup )
       if ( !QFileInfo( blocName ).exists() || !locked  )
       {
         // unused non-removed folder
-#ifdef WIN32
         Qtx::rmDir( currF );
-#else 
-        // use the system call Qtx::rmDir() may not work on Linux
-        QString cmd = QString( "rm -rf " ) + currF.toLatin1().constData();
-        system( cmd.toLatin1().constData() );
-#endif
       }
     }
   }