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
This commit is contained in:
parent
6c4da6d611
commit
b27367a5bd
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user