summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorworo <woro@e10066b5-e1e2-0310-b819-94efdf66514b>2008-04-13 07:33:20 +0000
committerworo <woro@e10066b5-e1e2-0310-b819-94efdf66514b>2008-04-13 07:33:20 +0000
commitbb7c885980b07f746f55dc86f75bffa865d1f36b (patch)
tree51008b6f76bf7f014dc86575c60070f7d37bfdd2
parentde92d404fd89859238fcff270318695132c247bc (diff)
downloadvdr-plugin-muggle-bb7c885980b07f746f55dc86f75bffa865d1f36b.tar.gz
vdr-plugin-muggle-bb7c885980b07f746f55dc86f75bffa865d1f36b.tar.bz2
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 git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@1181 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--HISTORY3
-rw-r--r--mg_selection.c7
-rw-r--r--po/muggle.pot2
3 files changed, 11 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 67112b3..04fb625 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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"