Fixed bug where removing last item in queue caused second to last remaining item to become selected (instead of last item).
This commit is contained in:
parent
ece1a69bb5
commit
ff72335f15
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
IndexArgs removeIndexArgs = e as IndexArgs;
|
||||
topToBottomItemList.RemoveChild(removeIndexArgs.Index);
|
||||
EnsureSelection();
|
||||
if (QueueData.Instance.Count > 0)
|
||||
if (QueueData.Instance.Count > 0 && SelectedIndex > QueueData.Instance.Count - 1)
|
||||
{
|
||||
SelectedIndex = Math.Max(SelectedIndex - 1, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue