From a2b71f1ed7d1c3dcd43334e829b70aa53a9f6bf5 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Mon, 6 Aug 2012 14:21:49 +0200 Subject: [PATCH] Clean up WX style issues mentionned in previous commits comments --- Source/Core/DolphinWX/Src/Frame.cpp | 2 +- Source/Core/DolphinWX/Src/FrameTools.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 3efc26610b..6b0e7b7678 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -797,7 +797,7 @@ void CFrame::OnGameListCtrl_ItemActivated(wxListEvent& WXUNUSED (event)) bool IsHotkey(wxKeyEvent &event, int Id) { - return (event.GetKeyCode() && + return (event.GetKeyCode() != WXK_NONE && event.GetKeyCode() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkey[Id] && event.GetModifiers() == SConfig::GetInstance().m_LocalCoreStartupParameter.iHotkeyModifier[Id]); } diff --git a/Source/Core/DolphinWX/Src/FrameTools.cpp b/Source/Core/DolphinWX/Src/FrameTools.cpp index a42e76bee6..d24bd2f23e 100644 --- a/Source/Core/DolphinWX/Src/FrameTools.cpp +++ b/Source/Core/DolphinWX/Src/FrameTools.cpp @@ -669,7 +669,7 @@ void CFrame::DoOpen(bool Boot) wxFD_OPEN | wxFD_FILE_MUST_EXIST, this); - if (path.empty()) + if (path.IsEmpty()) return; std::string currentDir2 = File::GetCurrentDir();