summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2021-07-19 12:23:07 (GMT)
committerKevin Walzer <kw@codebykevin.com>2021-07-19 12:23:07 (GMT)
commit2663ec07e3687fa6a29ecda78ef1cfe984eddd75 (patch)
tree1d7f00c23d92c03dc5a0c56b2b31b30e7ceaaec6 /win
parent58c629a953ccf1bdfee92168437500af882db671 (diff)
downloadtk-2663ec07e3687fa6a29ecda78ef1cfe984eddd75.zip
tk-2663ec07e3687fa6a29ecda78ef1cfe984eddd75.tar.gz
tk-2663ec07e3687fa6a29ecda78ef1cfe984eddd75.tar.bz2
Display print dialog only once, not twice
Diffstat (limited to 'win')
-rw-r--r--win/tkWinGDI.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/win/tkWinGDI.c b/win/tkWinGDI.c
index 36514b8..a82fcbd 100644
--- a/win/tkWinGDI.c
+++ b/win/tkWinGDI.c
@@ -4744,12 +4744,6 @@ static int PrintSelectPrinter(
pd.hwndOwner = GetDesktopWindow();
pd.Flags = PD_HIDEPRINTTOFILE | PD_DISABLEPRINTTOFILE | PD_NOSELECTION;
- /* Handle user cancellation. */
- if (PrintDlgW(&pd) == 0){
- Tcl_AppendResult(interp, "User cancelled", NULL);
- return TCL_OK;
- }
-
if (PrintDlgW(&pd) == TRUE) {
/*Get document info.*/