mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +00:00
GUI: fix glitch when removing orders
This commit is contained in:
parent
8de9e98a45
commit
cef1fa9d99
1 changed files with 6 additions and 0 deletions
|
@ -1439,6 +1439,12 @@ void FurnaceGUI::doAction(int what) {
|
|||
case GUI_ACTION_ORDERS_REMOVE:
|
||||
prepareUndo(GUI_UNDO_CHANGE_ORDER);
|
||||
e->deleteOrder();
|
||||
if (curOrder>=e->curSubSong->ordersLen) {
|
||||
curOrder=e->curSubSong->ordersLen-1;
|
||||
oldOrder=curOrder;
|
||||
oldOrder1=curOrder;
|
||||
e->setOrder(curOrder);
|
||||
}
|
||||
makeUndo(GUI_UNDO_CHANGE_ORDER);
|
||||
break;
|
||||
case GUI_ACTION_ORDERS_MOVE_UP:
|
||||
|
|
Loading…
Reference in a new issue