Configuration Bug - BugFix attached (1 Viewer)

TheGangster

Portal Member
March 31, 2009
7
0
Home Country
Portugal Portugal
While playing with my remote control I came by a bug on the remote configuration.

I'm using the latest SVN version, revision 22162.

In order to reproduce it do:
1) Open MediaPortal Configuration
2) Remote
3) X10
4) Select other as the remote
5) Learn
6) Start Learning
7) If you notice it well enough, the configs on the list are duplicated, and if you click on Mapping you will 'add' more duplicated.

The fix is to simply clear the tree before reloading it.

Under the RemoteLearn.cs on RemotePlugins project, search for the method LoadMapping and add the following line:

Code:
mpListView.Items.Clear();

before:
Code:
foreach (XmlNode nodeRemote in listRemotes)

Should be around line 314.

Also remove the line 182, which has mpListView.Items.Clear(); on the same file.

A fixed version of this file is attached.

Thanks
 

Attachments

  • RemoteLearn.zip
    30.6 KB

Users who are viewing this thread

Top Bottom