summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRachel Bryk <RachelBryk@gmail.com>2013-02-07 00:31:57 -0500
committerRachel Bryk <RachelBryk@gmail.com>2013-02-07 00:31:57 -0500
commit0ebe35e0effae7df14fd9fa16611e990df678d41 (patch)
treedfe07fd9f88701dcff1bd20a9b74ddc0b512554e /Source/Core
parent6bc9e7579c0db6c855caf47912fdc79a6e1a90dc (diff)
Disable play and record buttons if an iso was selected, but is later deselected.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/GameListCtrl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/GameListCtrl.cpp b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
index 51b5bb2554..6fd298ad81 100644
--- a/Source/Core/DolphinWX/Src/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/Src/GameListCtrl.cpp
@@ -57,6 +57,8 @@ size_t CGameListCtrl::m_numberItem = 0;
std::string CGameListCtrl::m_currentFilename;
bool sorted = false;
+extern CFrame* main_frame;
+
static int CompareGameListItems(const GameListItem* iso1, const GameListItem* iso2,
long sortData = CGameListCtrl::COLUMN_TITLE)
{
@@ -373,7 +375,8 @@ void CGameListCtrl::Update()
SetItemFont(index, *wxITALIC_FONT);
SetColumnWidth(0, wxLIST_AUTOSIZE);
}
-
+ if (GetSelectedISO() == NULL)
+ main_frame->UpdateGUI();
Show();
AutomaticColumnWidth();
@@ -975,7 +978,7 @@ const GameListItem * CGameListCtrl::GetSelectedISO()
{
long item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
if (item == wxNOT_FOUND)
- return new GameListItem(""); // TODO: wtf is this
+ return NULL;
else
{
// Here is a little workaround for multiselections: