mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 20:14:19 -04:00
68aea9c16f
Only apply channel settings after BasicChannelSettingsDialog returns an accepted result. Previously, the return value from dialog.exec() was ignored and settings were copied from the dialog regardless of whether the dialog was accepted or rejected. This could cause changes made in the channel settings dialog to be applied even when the user discarded them. Check the dialog result before updating the channel title, color, Reverse API configuration, and stream index to keep the GUI state synchronized with the user's action. This also fixes the Coverity CHECKED_RETURN warning for the unchecked QDialog::exec() return value. Signed-off-by: Robin Getz <rgetz503@gmail.com>