]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/docmdi.cpp
fixed TREE_ITEM_MENU generation from right mouse clicks: don't pass WM_RBUTTONDOWN...
[wxWidgets.git] / src / common / docmdi.cpp
index 14980bf532cbc1bf00d77605aaf82db9863d0092..77b81cabbcb27639c20ead1614eec466aff65cf9 100644 (file)
@@ -67,8 +67,8 @@ void wxDocMDIParentFrame::Init()
 
 void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
 {
-      wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
-      if (f != wxT(""))
+    wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
+    if (!f.empty())
         (void)m_docManager->CreateDocument(f, wxDOC_SILENT);
 }