From d69ec8f0678a7a8aaa361b7b82d9686abd2ef612 Mon Sep 17 00:00:00 2001 From: sln Date: Fri, 24 Feb 2012 14:28:14 +0000 Subject: [PATCH] 0000929: linux debian: Abort after exit from application --- src/SUIT/SUIT_Session.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SUIT/SUIT_Session.cxx b/src/SUIT/SUIT_Session.cxx index e8782cd5e..9ab60b1ab 100755 --- a/src/SUIT/SUIT_Session.cxx +++ b/src/SUIT/SUIT_Session.cxx @@ -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; -- 2.39.2