iPasswordDialog = 0;
}
-void WindowManager::showProgressBar( const QString &aText )
+void WindowManager::showProgressBar( const QString &aText, bool aCancellable )
{
qDebug() << "WindowManager::showProgressBar( const QString & )";
if( iProgressBar == 0 ) {
- iProgressBar = new ProgressBar( aText );
+ iProgressBar = new ProgressBar( aText, aCancellable );
iProgressBar->show();
connect( iProgressBar, SIGNAL( cancel() ), this, SIGNAL( progressBarCancelled() ) );
}
void WindowManager::closeProgressBar()
{
qDebug() << "WindowManager::closeProgressBar()";
- iProgressBar->close();
- delete iProgressBar;
- iProgressBar = 0;
+ if( iProgressBar )
+ {
+ iProgressBar->close();
+ delete iProgressBar;
+ iProgressBar = 0;
+ }
}
void WindowManager::updateProgressBar( const QString &aMessage )