From: sln Date: Mon, 2 Jul 2012 07:37:28 +0000 (+0000) Subject: if SALOME_BACKUP_FOLDER is empty backup functionality is switched-off X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c357169a38830c1e42049aa73a0c991ec27a115b;p=modules%2Fgui.git if SALOME_BACKUP_FOLDER is empty backup functionality is switched-off --- diff --git a/src/SUIT/SUIT_Session.cxx b/src/SUIT/SUIT_Session.cxx index 16b68a6fb..f263bf13b 100755 --- a/src/SUIT/SUIT_Session.cxx +++ b/src/SUIT/SUIT_Session.cxx @@ -527,6 +527,10 @@ void SUIT_Session::createBackupTimer() if ( !app ) return; + QString backupFolder = getBackupFolder(); + if ( backupFolder.isEmpty() ) + return; + myBTimer = new QTimer( this ); connect( myBTimer, SIGNAL( timeout() ), this, SLOT( onBTimer() ) ); @@ -534,7 +538,7 @@ void SUIT_Session::createBackupTimer() if ( mSec > 0 ) myBTimer->start( mSec ); - QString pref = QDir::convertSeparators( getBackupFolder() + "/" + getBackupPrefix() ); + QString pref = QDir::convertSeparators( backupFolder + "/" + getBackupPrefix() ); myBFolder = pref; int i = 0; do