author | andyq <andyq> | 2002-12-17 22:30:59 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-12-17 22:30:59 (UTC) |
commit | 01640bfdce16d2fd23722a59004a6efd4600c0cf (patch) (unidiff) | |
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 | |||
@@ -147,4 +147,15 @@ void InstallDlgImpl :: installSelected() | |||
147 | { | 147 | { |
148 | 148 | if ( btnInstall->text() == "Abort" ) | |
149 | if ( btnInstall->text() == "Close" ) | 149 | { |
150 | if ( pIpkg ) | ||
151 | { | ||
152 | displayText( "\n**** User Clicked ABORT ***" ); | ||
153 | pIpkg->abort(); | ||
154 | displayText( "**** Process Aborted ****" ); | ||
155 | } | ||
156 | |||
157 | btnInstall->setText( tr( "Close" ) ); | ||
158 | return; | ||
159 | } | ||
160 | else if ( btnInstall->text() == "Close" ) | ||
150 | { | 161 | { |
@@ -156,3 +167,5 @@ void InstallDlgImpl :: installSelected() | |||
156 | btnOptions->setEnabled( false ); | 167 | btnOptions->setEnabled( false ); |
157 | btnInstall->setEnabled( false ); | 168 | // btnInstall->setEnabled( false ); |
169 | |||
170 | btnInstall->setText( "Abort" ); | ||
158 | 171 | ||
@@ -234,3 +247,3 @@ void InstallDlgImpl :: installSelected() | |||
234 | btnOptions->setEnabled( true ); | 247 | btnOptions->setEnabled( true ); |
235 | btnInstall->setEnabled( true ); | 248 | // btnInstall->setEnabled( true ); |
236 | btnInstall->setText( tr( "Close" ) ); | 249 | btnInstall->setText( tr( "Close" ) ); |
@@ -238,2 +251,3 @@ void InstallDlgImpl :: installSelected() | |||
238 | 251 | ||
252 | |||
239 | void InstallDlgImpl :: displayText(const QString &text ) | 253 | void InstallDlgImpl :: displayText(const QString &text ) |