author | andyq <andyq> | 2002-12-17 22:30:59 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-12-17 22:30:59 (UTC) |
commit | 01640bfdce16d2fd23722a59004a6efd4600c0cf (patch) (side-by-side diff) | |
tree | 399d5da7706ab89b41b7da0eb5fec025d0d3db05 | |
parent | f18839182d493a49e9411e3dbc070952da7dead9 (diff) | |
download | opie-01640bfdce16d2fd23722a59004a6efd4600c0cf.zip opie-01640bfdce16d2fd23722a59004a6efd4600c0cf.tar.gz opie-01640bfdce16d2fd23722a59004a6efd4600c0cf.tar.bz2 |
When ipkg process is run - start/close button changes to abort
-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 @@ -146,6 +146,17 @@ void InstallDlgImpl :: optionsSelected() 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" ) { done( 1 ); @@ -155,5 +166,7 @@ void InstallDlgImpl :: installSelected() // Disable buttons btnOptions->setEnabled( false ); - btnInstall->setEnabled( false ); +// btnInstall->setEnabled( false ); + + btnInstall->setText( "Abort" ); if ( pIpkg ) @@ -233,8 +246,9 @@ void InstallDlgImpl :: installSelected() btnOptions->setEnabled( true ); - btnInstall->setEnabled( true ); +// btnInstall->setEnabled( true ); btnInstall->setText( tr( "Close" ) ); } + void InstallDlgImpl :: displayText(const QString &text ) { |