Clean up WX style issues mentionned in previous commits comments
This commit is contained in:
parent
0efd4e5c29
commit
a2b71f1ed7
|
@ -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]);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue