[mythtv-commits] Re: Ticket #357: Patch for MythGame to support diff. Hosts

MythTV mythtv at cvs.mythtv.org
Fri Sep 23 06:44:35 UTC 2005


#357: Patch for MythGame to support diff. Hosts
----------------------+-----------------------------------------------------
 Reporter:  jochen    |        Owner:  ijr
     Type:  defect    |       Status:  new
 Priority:  minor     |    Milestone:     
Component:  mythgame  |      Version:     
 Severity:  medium    |   Resolution:     
----------------------+-----------------------------------------------------
Comment (by jochen):

 how can i use the MythTV settings function to set a vaule of NULL???
 because i want to make the patch to fit the standart coding style.

 Does it work if I change
 +class PlayerHostName: public ComboBoxSetting, public MGSetting {
 +public:
 +    PlayerHostName(const MythGamePlayerSettings& parent):
 +        MGSetting(parent, "hostname") {
 +        setLabel(QObject::tr("Hostname"));
 +        addSelection("(all Clients)", "*");
 +        addSelection("(current Client)", gContext->GetHostName());

 to

 +class PlayerHostName: public ComboBoxSetting, public MGSetting {
 +public:
 +    PlayerHostName(const MythGamePlayerSettings& parent):
 +        MGSetting(parent, "hostname") {
 +        setLabel(QObject::tr("Hostname"));
 +        addSelection("(all Clients)", NULL);
 +        addSelection("(current Client)", gContext->GetHostName());

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/357>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list