From f8c9aa1be4a2283597abe71b5bff57a99e5fd760 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 20 Jul 2020 18:18:49 +0200 Subject: [PATCH] Fixed crash when starting with no source 2 --- src/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main_window.cpp b/src/main_window.cpp index 8b06a6b7..5b5e2e7b 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -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;