-rw-r--r-- | noncore/settings/aqpkg/installdlgimpl.cpp | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp index bfb4f62..80c06ba 100644 --- a/noncore/settings/aqpkg/installdlgimpl.cpp +++ b/noncore/settings/aqpkg/installdlgimpl.cpp @@ -147,4 +147,15 @@ void InstallDlgImpl :: installSelected() { - - if ( btnInstall->text() == "Close" ) + if ( btnInstall->text() == "Abort" ) + { + if ( pIpkg ) + { + displayText( "\n**** User Clicked ABORT ***" ); + pIpkg->abort(); + displayText( "**** Process Aborted ****" ); + } + + btnInstall->setText( tr( "Close" ) ); + return; + } + else if ( btnInstall->text() == "Close" ) { @@ -156,3 +167,5 @@ void InstallDlgImpl :: installSelected() btnOptions->setEnabled( false ); - btnInstall->setEnabled( false ); +// btnInstall->setEnabled( false ); + + btnInstall->setText( "Abort" ); @@ -234,3 +247,3 @@ void InstallDlgImpl :: installSelected() btnOptions->setEnabled( true ); - btnInstall->setEnabled( true ); +// btnInstall->setEnabled( true ); btnInstall->setText( tr( "Close" ) ); @@ -238,2 +251,3 @@ void InstallDlgImpl :: installSelected() + void InstallDlgImpl :: displayText(const QString &text ) |