[mythtv] Mythcontrols bug related to key deletion?

Otto Kolsi otto at kolsi.fi
Sat Oct 14 11:41:35 UTC 2006


I'm about to file following as a bug in mythcontrols.. unless there's an 
explanation to this behavior that I don't understand :)


When trying to remove e.g. key 'O' / TOGGLEBROWSE from the TV Playback 
context, mythcontrols mixes the context. It shows dialog: "Confirm - 
Delete this key binding from context Music?". If Confirm is selected, 
there's an error about telling that this is mandatory action.

Following shows this from the DB:

{{{
mysql> select context, action, keylist from keybindings where keylist = 'O';
+-------------+--------------+---------+
| context     | action       | keylist |
+-------------+--------------+---------+
| TV Frontend | UPCOMING     | O       |
| TV Playback | TOGGLEBROWSE | O       |
| Music       | STOP         | O       |
+-------------+--------------+---------+
}}}

If I go to Music, I can delete the 'O' binding from there and it really 
removes the Music binding.

Even if I add a second key binding to TV Playback, TV Frontend and 
Music, mythcontrols still won't let me delete the 'O' keybinding from 
the TV Playback. It says it's mandatory action.

{{{
mysql> select context, action, keylist from keybindings where keylist 
like '%O,%';
+-------------+--------------+----------+
| context     | action       | keylist  |
+-------------+--------------+----------+
| TV Frontend | UPCOMING     | O,Ctrl+D |
| TV Playback | TOGGLEBROWSE | O,Ctrl+A |
| Music       | STOP         | O,Ctrl+D |
+-------------+--------------+----------+
}}}

Just to verify that there are no actions that have only the 'O' mapping, 
which would justify the "mandatory error message":

{{{
mysql> select context, action, keylist from keybindings where keylist = 
'O'; 

Empty set (0.00 sec)
}}}

So it seems to get confused from which context user want's to delete a 
key. And also fails to correctly identify a mandatory action.

Previous example is not the only one that fails for me, just an example.
-- 
   Otto


More information about the mythtv-dev mailing list