From c357169a38830c1e42049aa73a0c991ec27a115b Mon Sep 17 00:00:00 2001 From: sln Date: Mon, 2 Jul 2012 07:37:28 +0000 Subject: [PATCH] if SALOME_BACKUP_FOLDER is empty backup functionality is switched-off --- src/SUIT/SUIT_Session.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.2