From 01640bfdce16d2fd23722a59004a6efd4600c0cf Mon Sep 17 00:00:00 2001 From: andyq Date: Tue, 17 Dec 2002 22:30:59 +0000 Subject: When ipkg process is run - start/close button changes to abort --- (limited to 'noncore') 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 @@ -145,8 +145,19 @@ 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 ); return; @@ -154,7 +165,9 @@ void InstallDlgImpl :: installSelected() // Disable buttons btnOptions->setEnabled( false ); - btnInstall->setEnabled( false ); +// btnInstall->setEnabled( false ); + + btnInstall->setText( "Abort" ); if ( pIpkg ) { @@ -232,10 +245,11 @@ void InstallDlgImpl :: installSelected() } btnOptions->setEnabled( true ); - btnInstall->setEnabled( true ); +// btnInstall->setEnabled( true ); btnInstall->setText( tr( "Close" ) ); } + void InstallDlgImpl :: displayText(const QString &text ) { QString t = output->text() + "\n" + text; -- cgit v0.9.0.2