From: sln Date: Fri, 24 Feb 2012 14:28:14 +0000 (+0000) Subject: 0000929: linux debian: Abort after exit from application X-Git-Tag: CTH_1_7_3~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d69ec8f0678a7a8aaa361b7b82d9686abd2ef612;p=modules%2Fgui.git 0000929: linux debian: Abort after exit from application --- 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;