summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2011-03-24 04:20:46 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2011-03-24 04:20:46 +0000
commit85f717c7c70134bceebff9be9255b2071a101f86 (patch)
tree62ad476793fd1c97253407e6a5b97b6ba360ad8d /Source
parent63ed047aef4879d7f82f59b25e64c7e466f6b651 (diff)
only paint GameListItems if any exist
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7407 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/Src/GameListCtrl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
index 5ad6eab314..e88fe456b2 100644
--- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
@@ -360,6 +360,8 @@ void CGameListCtrl::OnPaintDrawImages(wxPaintEvent& event)
wxControl::OnPaint(event);
// Draw the flags, platform icons and emustate icons on top if there's games to show
+ if (m_ISOFiles.empty())
+ return;
// Retrieve the topmost shown item and get drawing offsets
const long