fix sample list right click, again
pls dont crash...
This commit is contained in:
parent
42538049fe
commit
0d396d4416
1 changed files with 4 additions and 1 deletions
|
|
@ -319,6 +319,9 @@ void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
|
|||
nextWindow=GUI_WINDOW_SAMPLE_EDIT;
|
||||
}
|
||||
}
|
||||
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
|
||||
ImGui::OpenPopup("SampleRightMenu");
|
||||
}
|
||||
if (sampleListDir || (settings.unifiedDataView && insListDir)) {
|
||||
DIR_DRAG_SOURCE(dir,asset,"FUR_SDIR");
|
||||
DIR_DRAG_TARGET(dir,asset,e->song.sampleDir,"FUR_SDIR");
|
||||
|
|
@ -338,7 +341,7 @@ void FurnaceGUI::sampleListItem(int i, int dir, int asset) {
|
|||
}
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
if (ImGui::BeginPopupContextItem("SampleRightMenu")) {
|
||||
if (ImGui::BeginPopup("SampleRightMenu")) {
|
||||
curSample=i;
|
||||
samplePos=0;
|
||||
updateSampleTex=true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue