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) {