Fix crash when reordering effects

file-open
James Ball 2024-04-13 16:58:31 +01:00 zatwierdzone przez James H Ball
rodzic 09d9b32882
commit e7479ac2f4
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -74,6 +74,7 @@ void DraggableListBoxItem::itemDragExit(const SourceDetails& /*dragSourceDetails
void DraggableListBoxItem::itemDropped(const juce::DragAndDropTarget::SourceDetails &dragSourceDetails) void DraggableListBoxItem::itemDropped(const juce::DragAndDropTarget::SourceDetails &dragSourceDetails)
{ {
hideInsertLines();
if (DraggableListBoxItem* item = dynamic_cast<DraggableListBoxItem*>(dragSourceDetails.sourceComponent.get())) if (DraggableListBoxItem* item = dynamic_cast<DraggableListBoxItem*>(dragSourceDetails.sourceComponent.get()))
{ {
if (dragSourceDetails.localPosition.y < getHeight() / 2) if (dragSourceDetails.localPosition.y < getHeight() / 2)
@ -82,7 +83,6 @@ void DraggableListBoxItem::itemDropped(const juce::DragAndDropTarget::SourceDeta
modelData.moveAfter(item->rowNum, rowNum); modelData.moveAfter(item->rowNum, rowNum);
listBox.updateContent(); listBox.updateContent();
} }
hideInsertLines();
} }
juce::Component* DraggableListBoxModel::refreshComponentForRow(int rowNumber, bool isRowSelected, juce::Component *existingComponentToUpdate) juce::Component* DraggableListBoxModel::refreshComponentForRow(int rowNumber, bool isRowSelected, juce::Component *existingComponentToUpdate)

Wyświetl plik

@ -637,7 +637,7 @@
bigIcon="pSc1mq" applicationCategory="public.app-category.music"> bigIcon="pSc1mq" applicationCategory="public.app-category.music">
<CONFIGURATIONS> <CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" targetName="osci-render"/> <CONFIGURATION isDebug="1" name="Debug" targetName="osci-render"/>
<CONFIGURATION isDebug="0" name="Release" targetName="osci-render"/> <CONFIGURATION isDebug="1" name="Release" targetName="osci-render"/>
</CONFIGURATIONS> </CONFIGURATIONS>
<MODULEPATHS> <MODULEPATHS>
<MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/> <MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/>