From e8ae20232a6bd0e41640314a5922ab3c50f3b966 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 20 Jul 2020 17:33:06 +0200 Subject: [PATCH] fixed crash when no dev detected 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 bc725233..96fd098c 100644 --- a/src/main_window.cpp +++ b/src/main_window.cpp @@ -221,7 +221,7 @@ void drawWindow() { sigPath.setVolume(volume); } - if (devId != _devId) { + if (devId != _devId && soapy.devList.size() > 0) { _devId = devId; soapy.setDevice(soapy.devList[devId]); srId = 0;