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 (e->song.sample.size()>0) {
|
||||||
if (ImGui::BeginCombo("##SampleSelect","select one...")) {
|
if (ImGui::BeginCombo("##SampleSelect","select one...")) {
|
||||||
|
if (ImGui::BeginTable("SampleSelCombo",1,ImGuiTableFlags_ScrollY)) {
|
||||||
actualSampleList();
|
actualSampleList();
|
||||||
|
ImGui::EndTable();
|
||||||
|
}
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
|
@ -200,7 +200,10 @@ void FurnaceGUI::drawWaveEdit() {
|
||||||
|
|
||||||
if (e->song.wave.size()>0) {
|
if (e->song.wave.size()>0) {
|
||||||
if (ImGui::BeginCombo("##WaveSelect","select one...")) {
|
if (ImGui::BeginCombo("##WaveSelect","select one...")) {
|
||||||
|
if (ImGui::BeginTable("WaveSelCombo",1,ImGuiTableFlags_ScrollY)) {
|
||||||
actualWaveList();
|
actualWaveList();
|
||||||
|
ImGui::EndTable();
|
||||||
|
}
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
Loading…
Reference in New Issue