The MinGW.org Installation Manager Tool
Revision | a8eb6c1ea6ef2be959af8f81a8ddfc3fab65d07c (tree) |
---|---|
Time | 2013-01-08 22:10:19 |
Author | Keith Marshall <keithmarshall@user...> |
Commiter | Keith Marshall |
Avoid unnecessary reloading of package list.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 2 | |
3 | + Avoid unnecessary reloading of package list. | |
4 | + | |
5 | + * src/guiexec.cpp (AppWindowMaker::OnCommand) [IDM_REPO_APPLY]: | |
6 | + Do not reload package list after processing; update it in place. | |
7 | + | |
8 | +2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net> | |
9 | + | |
3 | 10 | Avoid potential heap corruption in action scheduler. |
4 | 11 | |
5 | 12 | * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to... |
@@ -650,9 +650,6 @@ long AppWindowMaker::OnCommand( WPARAM cmd ) | ||
650 | 650 | * actions schedule, remove all marker icons, and refresh |
651 | 651 | * the package list to reflect current status. |
652 | 652 | */ |
653 | -#if 0 /* FIXME: we'd like to just do this in place, but doing | |
654 | - * so seems to cause mingw-get to become unstable... | |
655 | - */ | |
656 | 653 | pkgListViewMaker pkglist( PackageListView ); |
657 | 654 | pkglist.UpdateListView(); |
658 | 655 |
@@ -664,17 +661,7 @@ long AppWindowMaker::OnCommand( WPARAM cmd ) | ||
664 | 661 | pkglist.MarkScheduledActions( |
665 | 662 | pkgData->ClearScheduledActions( ACTION_PRESERVE_FAILED ) |
666 | 663 | ); |
667 | -#else | |
668 | - /* ...so, for the time being, we must force a complete | |
669 | - * reload of the package list; (note that this has the | |
670 | - * side effect of clearing any residual action schedule, | |
671 | - * so we lose any potential record of failed actions). | |
672 | - */ | |
673 | - ClearPackageList(); | |
674 | - LoadPackageData( false ); | |
675 | - UpdatePackageList(); | |
676 | - UpdateDataSheet(); | |
677 | -#endif | |
664 | + | |
678 | 665 | /* Clearing the schedule of actions may also affect the |
679 | 666 | * validity of menu options; update accordingly. |
680 | 667 | */ |