{
case PasswordDialog::Correct :
{
- iWindowManager->showProgressBar( "Changing current operation mode." );
+ iWindowManager->showProgressBar( "Changing current operation mode.", true );
connect( iWindowManager, SIGNAL( progressBarCancelled() ), this, SLOT( progressBarCancelled() ) );
connect( iDevice, SIGNAL( changingMode( const QString & ) ),
iWindowManager, SLOT( updateProgressBar( const QString & ) ) );
+ connect( iDevice, SIGNAL( changingModeFailed() ), this, SLOT( progressBarCancelled() ) );
iDevice->changeMode( true );
break;
}