Clean up WX style issues mentionned in previous commits comments

This commit is contained in:
Pierre Bourdon 2012-08-06 14:21:49 +02:00
parent 0efd4e5c29
commit a2b71f1ed7
2 changed files with 2 additions and 2 deletions

View File

@ -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]);
}

View File

@ -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();