X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53c6e7ccd2c012afe1819485260e9d34eba09538..1f2f0331455e0a91fdbc57afefe8f8c7c0db9392:/src/common/docview.cpp diff --git a/src/common/docview.cpp b/src/common/docview.cpp index 4f7427ebfe..26281bef27 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -1044,6 +1044,7 @@ void wxDocManager::FileHistoryRemoveMenu(wxMenu *menu) m_fileHistory->RemoveMenu(menu); } +#if wxUSE_CONFIG void wxDocManager::FileHistoryLoad(wxConfigBase& config) { if (m_fileHistory) @@ -1055,6 +1056,7 @@ void wxDocManager::FileHistorySave(wxConfigBase& config) if (m_fileHistory) m_fileHistory->Save(config); } +#endif void wxDocManager::FileHistoryAddFilesToMenu(wxMenu* menu) { @@ -1256,7 +1258,7 @@ wxDocTemplate *wxDocManager::SelectViewType(wxDocTemplate **templates, int n = 0; for (i = 0; i < noTemplates; i++) { - if (templates[i]->IsVisible() && templates[i]->GetViewName()) + if (templates[i]->IsVisible() && (templates[i]->GetViewName() != "")) { strings[n] = WXSTRINGCAST templates[i]->m_viewTypeName; data[n] = (char *)templates[i]; @@ -1704,7 +1706,7 @@ void wxCommandProcessor::SetMenuStrings(void) // we've undone to the start of the list, but can redo the first. wxCommand *redoCommand = (wxCommand *)m_commands.First()->Data(); wxString redoCommandName(redoCommand->GetName()); - if (!redoCommandName) redoCommandName = _("Unnamed command"); + if (redoCommandName == "") redoCommandName = _("Unnamed command"); buf = wxString(_("&Redo ")) + redoCommandName; m_commandEditMenu->SetLabel(wxID_REDO, buf); m_commandEditMenu->Enable(wxID_REDO, TRUE); @@ -1820,6 +1822,7 @@ void wxFileHistory::RemoveMenu(wxMenu *menu) m_fileMenus.DeleteObject(menu); } +#if wxUSE_CONFIG void wxFileHistory::Load(wxConfigBase& config) { m_fileHistoryN = 0; @@ -1846,6 +1849,7 @@ void wxFileHistory::Save(wxConfigBase& config) config.Write(buf, wxString(m_fileHistory[i])); } } +#endif void wxFileHistory::AddFilesToMenu() {