Skip to content

Commit

Permalink
Fix a crash after IQ playback when invalid input device is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisslav2011 committed Sep 24, 2024
1 parent cae05ee commit 4560a73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/applications/gqrx/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2586,7 +2586,11 @@ void MainWindow::stopIqPlayback()

// restore original input device
auto indev = m_settings->value("input/device", "").toString();
rx->set_input_device(indev.toStdString());
try{
rx->set_input_device(indev.toStdString());
}catch(std::runtime_error &x)
{
}

// restore sample rate
bool conv_ok;
Expand Down

0 comments on commit 4560a73

Please sign in to comment.