]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0000929: linux debian: Abort after exit from application
authorsln <sln@opencascade.com>
Fri, 24 Feb 2012 14:28:14 +0000 (14:28 +0000)
committersln <sln@opencascade.com>
Fri, 24 Feb 2012 14:28:14 +0000 (14:28 +0000)
src/SUIT/SUIT_Session.cxx

index e8782cd5eef664fd49d117b7b3b647423599e982..9ab60b1ab43a5e4126512facad90f121c612b481 100755 (executable)
@@ -756,8 +756,8 @@ void SUIT_Session::restoreBackup()
 void SUIT_Session::removeTmpFiles( const bool withBackup )
 {
   QPair< QString, QString > dirToPref[ 2 ];
-  dirToPref[ 0 ].first = getSavePrefix();
-  dirToPref[ 0 ].second= QDir::tempPath();
+  dirToPref[ 0 ].first = QDir::tempPath();
+  dirToPref[ 0 ].second= getSavePrefix();
   dirToPref[ 1 ].first = getBackupFolder();
   dirToPref[ 1 ].second= getBackupPrefix();
 
@@ -773,7 +773,7 @@ void SUIT_Session::removeTmpFiles( const bool withBackup )
     for ( it = tmpFolders.begin(); it != tmpFolders.end(); ++it )
     {
       // iterate through tmp folders
-      const QString& currF = Qtx::addSlash( QDir::tempPath() ) + *it;
+      const QString& currF = Qtx::addSlash( tmpDir.absolutePath() ) + *it;
       QString blocName = Qtx::addSlash( currF ) + "used_by_salome";
 
       bool locked;