[mythtv-commits] Ticket #8613: MythGame fails to find ROMs when "extensions" field is blank in DB

MythTV mythtv at cvs.mythtv.org
Mon Jun 28 02:29:08 UTC 2010


#8613: MythGame fails to find ROMs when "extensions" field is blank in DB
-------------------------------+--------------------------------------------
 Reporter:  mythtv@…           |       Owner:  greg      
     Type:  patch              |      Status:  new       
 Priority:  minor              |   Milestone:  unknown   
Component:  Plugin - MythGame  |     Version:  0.23-fixes
 Severity:  medium             |     Mlocked:  0         
-------------------------------+--------------------------------------------
 When scanning for new/missing ROMs, the GameHandler::buildFileList method
 checks for handler->validextensions.count() > 0. However, when this field
 is generated, it uses the QString::split() method which will always return
 a single-element list if the source string has no separator. This means
 that when the gameplayers.extensions field is blank, the count() will be 1
 instead of zero.

 This simple patch fixes it by passing QString::SkipEmptyParts

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/8613>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list