[mythtv-commits] mythtv commit: r21440 - in trunk by paulh

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sat Aug 22 22:09:53 UTC 2009


      Author: paulh
        Date: 2009-08-22 22:09:53 +0000 (Sat, 22 Aug 2009)
New Revision: 21440
   Changeset: http://cvs.mythtv.org/trac/changeset/21440

Modified:

   trunk/mythplugins/mytharchive/mytharchive/exportnative.cpp
   trunk/mythplugins/mytharchive/mytharchive/fileselector.cpp
   trunk/mythplugins/mytharchive/mytharchive/importnative.cpp
   trunk/mythplugins/mytharchive/mytharchive/logviewer.cpp
   trunk/mythplugins/mytharchive/mytharchive/mythburn.cpp
   trunk/mythplugins/mytharchive/mytharchive/recordingselector.cpp
   trunk/mythplugins/mytharchive/mytharchive/selectdestination.cpp
   trunk/mythplugins/mytharchive/mytharchive/thumbfinder.cpp
   trunk/mythplugins/mytharchive/mytharchive/videoselector.cpp
   trunk/mythplugins/mythbrowser/mythbrowser/bookmarkeditor.cpp
   trunk/mythplugins/mythbrowser/mythbrowser/bookmarkmanager.cpp
   trunk/mythplugins/mythbrowser/mythbrowser/mythbrowser.cpp
   trunk/mythplugins/mythflix/mythflix/mythflix.cpp
   trunk/mythplugins/mythflix/mythflix/mythflixqueue.cpp
   trunk/mythplugins/mythgallery/mythgallery/glsingleview.cpp
   trunk/mythplugins/mythgallery/mythgallery/iconview.cpp
   trunk/mythplugins/mythgallery/mythgallery/singleview.cpp
   trunk/mythplugins/mythgame/mythgame/gameui.cpp
   trunk/mythplugins/mythmovies/mythmovies/moviesui.cpp
   trunk/mythplugins/mythmusic/mythmusic/cdrip.cpp
   trunk/mythplugins/mythmusic/mythmusic/databasebox.cpp
   trunk/mythplugins/mythmusic/mythmusic/editmetadata.cpp
   trunk/mythplugins/mythmusic/mythmusic/globalsettings.cpp
   trunk/mythplugins/mythmusic/mythmusic/importmusic.cpp
   trunk/mythplugins/mythmusic/mythmusic/miniplayer.cpp
   trunk/mythplugins/mythmusic/mythmusic/mythlistbox-qt3.cpp
   trunk/mythplugins/mythmusic/mythmusic/mythlistview-qt3.cpp
   trunk/mythplugins/mythmusic/mythmusic/playbackbox.cpp
   trunk/mythplugins/mythmusic/mythmusic/smartplaylist.cpp
   trunk/mythplugins/mythnews/mythnews/mythnews.cpp
   trunk/mythplugins/mythnews/mythnews/mythnewsconfig.cpp
   trunk/mythplugins/mythnews/mythnews/mythnewseditor.cpp
   trunk/mythplugins/mythvideo/mythvideo/videodlg.cpp
   trunk/mythplugins/mythweather/mythweather/weather.cpp
   trunk/mythplugins/mythweather/mythweather/weatherSetup.cpp
   trunk/mythplugins/mythzoneminder/mythzoneminder/zmconsole.cpp
   trunk/mythplugins/mythzoneminder/mythzoneminder/zmevents.cpp
   trunk/mythplugins/mythzoneminder/mythzoneminder/zmliveplayer.cpp
   trunk/mythplugins/mythzoneminder/mythzoneminder/zmplayer.cpp
   trunk/mythtv/libs/libmyth/mythconfigdialogs.cpp
   trunk/mythtv/libs/libmyth/mythdialogs.cpp
   trunk/mythtv/libs/libmyth/mythterminal.cpp
   trunk/mythtv/libs/libmyth/mythwidgets.cpp
   trunk/mythtv/libs/libmyth/mythwizard.cpp
   trunk/mythtv/libs/libmyth/uitypes.cpp
   trunk/mythtv/libs/libmyth/virtualkeyboard_qt.cpp
   trunk/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
   trunk/mythtv/libs/libmythtv/osdlistbtntype.cpp
   trunk/mythtv/libs/libmythtv/previouslist.cpp
   trunk/mythtv/libs/libmythtv/progdetails.cpp
   trunk/mythtv/libs/libmythtv/proglist_qt.cpp
   trunk/mythtv/libs/libmythtv/sr_dialog.cpp
   trunk/mythtv/libs/libmythtv/tv_play.cpp
   trunk/mythtv/libs/libmythtv/viewschdiff.cpp
   trunk/mythtv/libs/libmythui/mythdialogbox.cpp
   trunk/mythtv/libs/libmythui/mythmainwindow.cpp
   trunk/mythtv/libs/libmythui/mythmainwindow.h
   trunk/mythtv/libs/libmythui/mythscreentype.cpp
   trunk/mythtv/libs/libmythui/myththemedmenu.cpp
   trunk/mythtv/libs/libmythui/mythuibutton.cpp
   trunk/mythtv/libs/libmythui/mythuibuttonlist.cpp
   trunk/mythtv/libs/libmythui/mythuibuttontree.cpp
   trunk/mythtv/libs/libmythui/mythuicheckbox.cpp
   trunk/mythtv/libs/libmythui/mythuitextedit.cpp
   trunk/mythtv/libs/libmythui/mythuiwebbrowser.cpp
   trunk/mythtv/libs/libmythui/mythvirtualkeyboard.cpp
   trunk/mythtv/programs/mythfrontend/channelrecpriority.cpp
   trunk/mythtv/programs/mythfrontend/guidegrid.cpp
   trunk/mythtv/programs/mythfrontend/mythappearance.cpp
   trunk/mythtv/programs/mythfrontend/mythcontrols.cpp
   trunk/mythtv/programs/mythfrontend/playbackbox.cpp
   trunk/mythtv/programs/mythfrontend/progfind.cpp
   trunk/mythtv/programs/mythfrontend/proglist.cpp
   trunk/mythtv/programs/mythfrontend/programrecpriority.cpp
   trunk/mythtv/programs/mythfrontend/statusbox.cpp
   trunk/mythtv/programs/mythfrontend/viewscheduled.cpp
   trunk/mythtv/programs/mythtv-setup/channeleditor.cpp
   trunk/mythtv/programs/mythwelcome/welcomedialog.cpp

Log:

Fix a bug in the way keypress events are handled resulting in jumppoints
being activated multiple times for each key press.

The problem is MythMainWindow::TranslateKeypress() can be called several times
for each keypress event resulting in the jumppoint code to be executed each time.
Things are made worse by the conversion to MythUI because the keypress event
can be passed around between MythScreenTypes and MythUITypes and their base
classes until one of them handles the keypress.

The fix involves changing MythMainWindow::TranslateKeypress() to return true if
it handled the event (the keypress is a jump point) or false if the caller
should continue to process the event. All the other changes are just to ensure
everywhere TranslateKeypress() is used the caller will ignore the keypress
event if it has already been processed by TranslateKeypress().




More information about the mythtv-commits mailing list