]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't disable wxID_PRINT_SETUP even when there is no active document.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 May 2010 14:59:08 +0000 (14:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 May 2010 14:59:08 +0000 (14:59 +0000)
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

index e95866bd146f1a0fa656a95727cecfbd49cc4b47..9188b25ed82785088f92b04e06270f4fe00a2b49 100644 (file)
@@ -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()