mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
GUI: fix adding orders
This commit is contained in:
parent
9fc3a8afed
commit
c90152b425
2 changed files with 3 additions and 1 deletions
|
@ -3625,7 +3625,8 @@ void DivEngine::addOrder(int pos, bool duplicate, bool where) {
|
|||
}
|
||||
curSubSong->ordersLen++;
|
||||
saveLock.unlock();
|
||||
if (pos<=curOrder) curOrder++;
|
||||
curOrder=pos+1;
|
||||
prevOrder=curOrder;
|
||||
if (playing && !freelance) {
|
||||
playSub(false);
|
||||
}
|
||||
|
|
|
@ -1472,6 +1472,7 @@ void FurnaceGUI::doAction(int what) {
|
|||
case GUI_ACTION_ORDERS_ADD:
|
||||
prepareUndo(GUI_UNDO_CHANGE_ORDER);
|
||||
e->addOrder(curOrder,false,false);
|
||||
curOrder=e->getOrder();
|
||||
makeUndo(GUI_UNDO_CHANGE_ORDER);
|
||||
break;
|
||||
case GUI_ACTION_ORDERS_DUPLICATE:
|
||||
|
|
Loading…
Reference in a new issue