• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

The MinGW.org Installation Manager Tool


Commit MetaInfo

Revisiona8eb6c1ea6ef2be959af8f81a8ddfc3fab65d07c (tree)
Time2013-01-08 22:10:19
AuthorKeith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Avoid unnecessary reloading of package list.

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
11 2013-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
22
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+
310 Avoid potential heap corruption in action scheduler.
411
512 * src/guiexec.cpp (pkgActionItem::Clear): Factor out; relocate to...
--- a/src/guiexec.cpp
+++ b/src/guiexec.cpp
@@ -650,9 +650,6 @@ long AppWindowMaker::OnCommand( WPARAM cmd )
650650 * actions schedule, remove all marker icons, and refresh
651651 * the package list to reflect current status.
652652 */
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- */
656653 pkgListViewMaker pkglist( PackageListView );
657654 pkglist.UpdateListView();
658655
@@ -664,17 +661,7 @@ long AppWindowMaker::OnCommand( WPARAM cmd )
664661 pkglist.MarkScheduledActions(
665662 pkgData->ClearScheduledActions( ACTION_PRESERVE_FAILED )
666663 );
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+
678665 /* Clearing the schedule of actions may also affect the
679666 * validity of menu options; update accordingly.
680667 */