From c283c445987124bb23789375552ae60ed0a3d7bc Mon Sep 17 00:00:00 2001 From: Christopher O'Neill Date: Thu, 27 Jul 2017 21:26:13 +0100 Subject: [PATCH] Fix instrument editor cursor for pasting also --- src/tracker/EnvelopeEditor.cpp | 1 + src/tracker/SectionInstruments.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracker/EnvelopeEditor.cpp b/src/tracker/EnvelopeEditor.cpp index 53f6b7e9..2d178160 100644 --- a/src/tracker/EnvelopeEditor.cpp +++ b/src/tracker/EnvelopeEditor.cpp @@ -187,6 +187,7 @@ void EnvelopeEditor::pasteOther(const TEnvelope& env) prepareUndo(); *envelope = env; + resetSelection(); finishUndo(); } diff --git a/src/tracker/SectionInstruments.cpp b/src/tracker/SectionInstruments.cpp index 9fe2df37..914152be 100644 --- a/src/tracker/SectionInstruments.cpp +++ b/src/tracker/SectionInstruments.cpp @@ -188,7 +188,6 @@ pp_int32 SectionInstruments::handleEvent(PPObject* sender, PPEvent* event) { const TEnvelope* env = predefinedEnvelopes->restore(i); getEnvelopeEditor()->pasteOther(*env); - getEnvelopeEditor()->resetSelection(); } update();