From fbbe0bdf63d1c746f8a2a723ba6f24a9e99c4d1e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 1 Nov 2023 00:16:35 -0500 Subject: [PATCH] GUI: fix sample list right click bug --- src/gui/dataList.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 62736b549..527848a63 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -202,6 +202,8 @@ void FurnaceGUI::waveListItem(int i, float* wavePreview, int dir, int asset) { void FurnaceGUI::sampleListItem(int i, int dir, int asset) { bool memWarning=false; + ImGui::PushID(i); + DivSample* sample=e->song.sample[i]; for (int j=0; jsong.systemLen; j++) { DivDispatch* dispatch=e->getDispatch(j); @@ -268,6 +270,7 @@ void FurnaceGUI::sampleListItem(int i, int dir, int asset) { ImGui::EndPopup(); } if (wantScrollList && curSample==i) ImGui::SetScrollHereY(); + ImGui::PopID(); } void FurnaceGUI::drawInsList(bool asChild) {