diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-29 06:29:00 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-29 06:29:00 (GMT) |
commit | 31c1ceca4b6eb7866fd4a62c08e93717e51a7131 (patch) | |
tree | a43dcd2792a5a31be664e78b4b7e637937e0e8c1 /generic | |
parent | 336f34228cb6b288f45ccb32c482898749f4b967 (diff) | |
download | tk-31c1ceca4b6eb7866fd4a62c08e93717e51a7131.zip tk-31c1ceca4b6eb7866fd4a62c08e93717e51a7131.tar.gz tk-31c1ceca4b6eb7866fd4a62c08e93717e51a7131.tar.bz2 |
Follow-up to [9b6065d1fd]. Only save "update" command if there is no clientData and no deleteProc. Otherwise it cannot be restored.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkWindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index d4072f1..f48e469 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -944,7 +944,7 @@ TkCreateMainWindow( } if ((cmdPtr->flags & SAVEUPDATECMD) && Tcl_GetCommandInfo(interp, cmdPtr->name, &cmdInfo) && - cmdInfo.isNativeObjectProc) { + cmdInfo.isNativeObjectProc && !cmdInfo.objClientData && !cmdInfo.deleteProc) { mainPtr->tclUpdateObjProc = cmdInfo.objProc; } if (cmdPtr->flags & USEINITPROC) { |