From a245f658c72ab9f3815af1b947e45742a4e61288 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 Apr 2010 11:11:26 +0000 Subject: [PATCH] Compilation fix after last commit. wxApp::GetTraitsIfExists() doesn't exist in 2.8, mea culpa for backporting the trunk fix without testing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/mimetype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index b885dea81c..d041ccc8c7 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -1527,7 +1527,8 @@ void wxMimeTypesManagerImpl::InitIfNeeded() m_initialized = true; int mailcapStyles = wxMAILCAP_ALL; - if ( wxAppTraits * const traits = wxApp::GetTraitsIfExists() ) + if ( wxAppTraits * const traits = wxTheApp ? wxTheApp->GetTraits() + : NULL ) { wxString wm = traits->GetDesktopEnvironment();