From b27367a5bd7a2e1d88f03b0f1931672ae92219ec Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 31 May 2010 14:59:08 +0000
Subject: [PATCH] Don't disable wxID_PRINT_SETUP even when there is no active
 document.

Printer can be setup without active document, remove the EVT_UPDATE_UI handler
for wxID_PRINT_SETUP.

See #11394.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 src/common/docview.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/docview.cpp b/src/common/docview.cpp
index e95866bd14..9188b25ed8 100644
--- a/src/common/docview.cpp
+++ b/src/common/docview.cpp
@@ -901,7 +901,8 @@ BEGIN_EVENT_TABLE(wxDocManager, wxEvtHandler)
 
     EVT_UPDATE_UI(wxID_PRINT, wxDocManager::OnUpdateDisableIfNoDoc)
     EVT_UPDATE_UI(wxID_PREVIEW, wxDocManager::OnUpdateDisableIfNoDoc)
-    EVT_UPDATE_UI(wxID_PRINT_SETUP, wxDocManager::OnUpdateDisableIfNoDoc)
+    // NB: we keep "Print setup" menu item always enabled as it can be used
+    //     even without an active document
 #endif // wxUSE_PRINTING_ARCHITECTURE
 END_EVENT_TABLE()
 
-- 
2.47.2