QMessageBox::NoButton );
return false;
}
+ qApp->sendPostedEvents();
+ qApp->processEvents();
// VSR: <------------------------------------------------------------------------------
// ########## check native products
QCheckListItem* item = (QCheckListItem*)( productsView->firstChild() );
}
exitConfirmed = true;
}
- clean();
+ clean(true);
InstallWizard::reject();
}
// ================================================================
void SALOME_InstallWizard::accept()
{
___MESSAGE___( "ACCEPTED" );
- clean();
+ clean(true);
InstallWizard::accept();
}
// ================================================================
/*!
* SALOME_InstallWizard::clean
- * Clears and removes temporary directory
+ * Clears and (optionally) removes temporary directory
*/
// ================================================================
-void SALOME_InstallWizard::clean()
+void SALOME_InstallWizard::clean(bool rmDir)
{
// VSR: first remove temporary files
QString script = "cd ./config_files/; remove_tmp.sh '";
}
// VSR: then try to remove created temporary directory
//script = "rm -rf " + QDir::cleanDirPath( tempFolder->text().stripWhiteSpace() ) + TEMPDIRNAME;
- if ( !tmpCreated.isNull() ) {
+ if ( rmDir && !tmpCreated.isNull() ) {
script = "rm -rf " + tmpCreated;
script += " > /dev/null";
if ( system( script.latin1() ) ) {
}
// if something at all is selected
if ( !toInstall.isEmpty() ) {
+ clean(false); // VSR 07/02/05 - bug fix: first we should clear temporary directory
// disable <Next> button
nextButton()->setEnabled( false );
// disable <Back> button
QCheckListItem* findItem( const QString& sName );
// sets progress state to Aborted
void abort();
- // clears and removes temporary directory
- void clean();
+ // clears and (optionally) removes temporary directory
+ void clean(bool rmDir = false);
protected slots:
// reject slot