Fix drag&drop of playlist
This commit is contained in:
1 parent
9a5ac282c5
commit
aa77d2d95c
1 file changed
+9
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user