]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
if SALOME_BACKUP_FOLDER is empty backup functionality is switched-off
authorsln <sln@opencascade.com>
Mon, 2 Jul 2012 07:37:28 +0000 (07:37 +0000)
committersln <sln@opencascade.com>
Mon, 2 Jul 2012 07:37:28 +0000 (07:37 +0000)
src/SUIT/SUIT_Session.cxx

index 16b68a6fbdb4bc1e5d45d883d527270a2b007174..f263bf13ba8ad3ef8a4bb446f6ee5b490a14e45e 100755 (executable)
@@ -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