Skip to content

Commit

Permalink
Fixed crash when starting with no source 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzerth committed Jul 20, 2020
1 parent e364eba commit f8c9aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void drawWindow() {
}
}
else {
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30))) {
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30)) && soapy.devList.size() > 0) {
soapy.start();
soapy.setFrequency(wtf.getCenterFrequency());
playing = true;
Expand Down

0 comments on commit f8c9aa1

Please sign in to comment.