[fixed] Grouping of Channels won't work (1 Viewer)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I just try the change on "public ChannelGroup CreateGroup(string groupName)"and i get this...
    Hmmm, you're right - must be a limitation of Gentle.NET. :(

    Your code is okay. I was just wondering if there might be a better way to do it by changing the SQL query. :)
    I think it is okay to merge. (y)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Ok i just adapt it a little :)
    This :
    Code:
    for (int i = 0; i < groups.Count; ++i)
            {
              string GroupNameCheck = groups[i].GroupName;
              if (GroupNameCheck == groupName)
              {
                GroupSelected = i;
              }
            }
    To:
    Code:
    for (int i = 0; i < groups.Count; ++i)
            {         
              if (groups[i].GroupName == groupName)
              {
                GroupSelected = i;
              }
            }
    Thanks :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Thanks :)
    Update is in master so available for future 1.3.0Beta.
     

    Users who are viewing this thread

    Top Bottom