GUI: fix crash in no asset menu (wave/sample)
This commit is contained in:
parent
206fb119aa
commit
ca1118a40f
|
@ -60,7 +60,10 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
|
||||
if (e->song.sample.size()>0) {
|
||||
if (ImGui::BeginCombo("##SampleSelect","select one...")) {
|
||||
actualSampleList();
|
||||
if (ImGui::BeginTable("SampleSelCombo",1,ImGuiTableFlags_ScrollY)) {
|
||||
actualSampleList();
|
||||
ImGui::EndTable();
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
|
@ -200,7 +200,10 @@ void FurnaceGUI::drawWaveEdit() {
|
|||
|
||||
if (e->song.wave.size()>0) {
|
||||
if (ImGui::BeginCombo("##WaveSelect","select one...")) {
|
||||
actualWaveList();
|
||||
if (ImGui::BeginTable("WaveSelCombo",1,ImGuiTableFlags_ScrollY)) {
|
||||
actualWaveList();
|
||||
ImGui::EndTable();
|
||||
}
|
||||
ImGui::EndCombo();
|
||||
}
|
||||
ImGui::SameLine();
|
||||
|
|
Loading…
Reference in New Issue