Fix drag&drop of playlist

This commit is contained in:
Flamefire committed 2014-12-21 12:38:40 +01:00
1 parent 9a5ac282c5
commit aa77d2d95c
1 file changed
+9
+9
View File
@@ -91,6 +91,15 @@ namespace VocaluxeLib.Menu
private void _SetSelected(int newSelection) private void _SetSelected(int newSelection)
{ {
IMenuElement el = _GetElement(_Selection); IMenuElement el = _GetElement(_Selection);
if (newSelection == _Selection)
{
// Don't change current selection
if (el == null)
_Selection = -1;
else if (!el.Selected)
el.Selected = true;
return;
}
if (el != null) if (el != null)
el.Selected = false; el.Selected = false;
_Selection = newSelection; _Selection = newSelection;