-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index b5d7352..3d06aef 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp | |||
@@ -546,17 +546,17 @@ InstallData NetworkPackageManager :: dealWithItem( QCheckListItem *item ) | |||
546 | int val = compareVersions( p->getInstalledVersion(), p->getVersion() ); | 546 | int val = compareVersions( p->getInstalledVersion(), p->getVersion() ); |
547 | if ( val == -2 ) | 547 | if ( val == -2 ) |
548 | { | 548 | { |
549 | // Error - should handle | 549 | // Error - should handle |
550 | } | 550 | } |
551 | else if ( val == -1 ) | 551 | else if ( val == -1 ) |
552 | { | 552 | { |
553 | // Version available is older - remove only | 553 | // Version available is older - remove only |
554 | item.option = "R"; | 554 | item.option = "D"; |
555 | } | 555 | } |
556 | else | 556 | else |
557 | { | 557 | { |
558 | QString caption; | 558 | QString caption; |
559 | QString text; | 559 | QString text; |
560 | QString secondButton; | 560 | QString secondButton; |
561 | QString secondOption; | 561 | QString secondOption; |
562 | if ( val == 0 ) | 562 | if ( val == 0 ) |
@@ -581,16 +581,17 @@ InstallData NetworkPackageManager :: dealWithItem( QCheckListItem *item ) | |||
581 | if ( stickyOption == "" ) | 581 | if ( stickyOption == "" ) |
582 | { | 582 | { |
583 | QString msgtext; | 583 | QString msgtext; |
584 | msgtext.sprintf( caption, (const char *)name ); | 584 | msgtext.sprintf( caption, (const char *)name ); |
585 | switch( QMessageBox::information( this, text, | 585 | switch( QMessageBox::information( this, text, |
586 | msgtext, "Remove", secondButton ) ) | 586 | msgtext, "Remove", secondButton ) ) |
587 | { | 587 | { |
588 | case 0: // Try again or Enter | 588 | case 0: // Try again or Enter |
589 | // option 0 = Remove | ||
589 | item.option = "D"; | 590 | item.option = "D"; |
590 | break; | 591 | break; |
591 | case 1: // Quit or Escape | 592 | case 1: // Quit or Escape |
592 | item.option = secondOption; | 593 | item.option = secondOption; |
593 | break; | 594 | break; |
594 | } | 595 | } |
595 | } | 596 | } |
596 | else | 597 | else |