diff options
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | mg_selection.c | 7 | ||||
-rw-r--r-- | po/muggle.pot | 2 |
3 files changed, 11 insertions, 1 deletions
@@ -332,3 +332,6 @@ XXXXXXXXXX: Version 0.0.8-ALPHA - display small cover: Appeared at left border instead at the right side - sqlite3: muggle segfaulted in special situations - fix segfault if the cache directory has a long path +- if at muggle start we land in an empty list because the saved state does not + match the database, it could happen that we never get anything displayed until + we delete muggle.state and restart muggle. Now muggle goes up to the parent level
\ No newline at end of file diff --git a/mg_selection.c b/mg_selection.c index ad8a123..ceb6aeb 100644 --- a/mg_selection.c +++ b/mg_selection.c @@ -464,6 +464,13 @@ unsigned int mgSelection::gotoPosition () { assert(m_level<ordersize()); listitems.refresh(); + if (listitems.size()==0 && m_level>0) { + if (m_level>0) { + DecLevel(); + refreshValues(); + } + return 0; + } unsigned int itemsize = listitems.size(); if (itemsize==0) m_position = 0; diff --git a/po/muggle.pot b/po/muggle.pot index f5150a6..8f57265 100644 --- a/po/muggle.pot +++ b/po/muggle.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: <vdr-muggle-develop@sourceforge.net>\n" -"POT-Creation-Date: 2008-04-13 08:03+0200\n" +"POT-Creation-Date: 2008-04-13 09:27+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" |