Ticket #8613: fix_extensions.patch

File fix_extensions.patch, 641 bytes (added by mythtv@…, 10 years ago)

Prevent split() from returning empty elements

  • mythgame/mythgame/gamehandler.cpp

     
    7979        handler->gameplayerid = query.value(4).toInt();
    8080        handler->gametype = query.value(5).toString();
    8181        handler->validextensions = query.value(6).toString().trimmed()
    82                                         .remove(" ").split(",");
     82                                        .remove(" ").split(",", QString::SkipEmptyParts);
    8383        handler->spandisks = query.value(7).toInt();
    8484    }
    8585}