Ticket #3921: 3921_diff.patch.txt

File 3921_diff.patch.txt, 452 bytes (added by Joe Ripley <vitaminjoe@…>, 12 years ago)

Disables initial focus for m_active_list if the list contains no items

Line 
1Index: mythplugins/mythweather/mythweather/weatherSetup.cpp
2===================================================================
3--- mythplugins/mythweather/mythweather/weatherSetup.cpp        (revision 14490)
4+++ mythplugins/mythweather/mythweather/weatherSetup.cpp        (working copy)
5@@ -160,6 +160,8 @@
6     wireUI();
7     loadData();
8     buildFocusList();
9+
10+    if (!m_active_list->GetCount()) m_active_list->allowFocus(false);
11     assignFirstFocus();
12 }
13