Skip to content

Commit 95eba60

Browse files
MrServoHains
authored andcommitted
[LCD4linux] V5.0-r29 tiny bugfix (#913)
- user request: https://www.opena.tv/viewtopic.php?p=589223#p589212
1 parent 8b1ae5c commit 95eba60

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

lcd4linux/src/plugin.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5329,11 +5329,12 @@ def askForConfigName(self, name):
53295329
def askForDelete(self, retval):
53305330
if (retval):
53315331
current = self["menu"].getCurrent()
5332-
if current and isfile(current[2]):
5332+
if len(current) > 1 and isfile(current[2]):
53335333
currentEntry = current[1]
5334-
i = int(currentEntry.split()[1])
5335-
self.list[i] = (_("deleted"),) + self.list[i][1:]
5336-
rmFile(current[2])
5334+
if len(currentEntry):
5335+
i = int(currentEntry.split()[1])
5336+
self.list[i] = (_("deleted"),) + self.list[i][1:]
5337+
rmFile(current[2])
53375338

53385339
def cancel(self):
53395340
self.close(False, self.session)

0 commit comments

Comments
 (0)