diff options
author | stanton <stanton> | 1999-02-04 21:44:18 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-02-04 21:44:18 (GMT) |
commit | 2de9741f87526d9c1da0b16aa506b0b29d4c7a79 (patch) | |
tree | 82d7a9d738fc5519bab91384b9e88655675c7f83 | |
parent | 3f9d3af6d7fabca7bed61dd63c80bfd3d4f584f3 (diff) | |
download | tk-2de9741f87526d9c1da0b16aa506b0b29d4c7a79.zip tk-2de9741f87526d9c1da0b16aa506b0b29d4c7a79.tar.gz tk-2de9741f87526d9c1da0b16aa506b0b29d4c7a79.tar.bz2 |
* win/tkWinMenu.c (TkpDestroyMenu): Changed so modalMenuPtr is
cleared when it is being destroyed.
-rw-r--r-- | win/tkWinMenu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 2f7210c..734591d 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinMenu.c,v 1.3 1998/09/14 18:24:00 stanton Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.4 1999/02/04 21:44:18 stanton Exp $ */ #define OEMRESOURCE @@ -364,6 +364,10 @@ TkpDestroyMenu(menuPtr) DestroyMenu(winMenuHdl); } menuPtr->platformData = NULL; + + if (menuPtr == modalMenuPtr) { + modalMenuPtr = NULL; + } } /* |