Skip to content

Commit

Permalink
fix paste command activation
Browse files Browse the repository at this point in the history
  • Loading branch information
eliottparis committed May 31, 2017
1 parent 79a51b9 commit 57345dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Client/Source/KiwiApp_Patcher/KiwiApp_PatcherView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2390,7 +2390,7 @@ namespace kiwi
result.setInfo(TRANS("Paste"), TRANS("Paste"), CommandCategories::editing, 0);
result.addDefaultKeypress('v', juce::ModifierKeys::commandModifier);
result.setActive(!isLocked()
&& juce::SystemClipboard::getTextFromClipboard().isNotEmpty());
&& !m_instance.getPatcherClipboardData().empty());
break;
}
case CommandIDs::pasteReplace:
Expand All @@ -2402,7 +2402,7 @@ namespace kiwi
result.addDefaultKeypress('v', juce::ModifierKeys::commandModifier | juce::ModifierKeys::altModifier);
result.setActive(!isLocked()
&& isAnyObjectSelected()
&& juce::SystemClipboard::getTextFromClipboard().isNotEmpty());
&& !m_instance.getPatcherClipboardData().empty());
break;
}
case CommandIDs::duplicate:
Expand Down

0 comments on commit 57345dc

Please sign in to comment.