From 5f65f43c6f3a5b3969a80fd0a8ee663730211667 Mon Sep 17 00:00:00 2001 From: Dan Smith Date: Mon, 17 Jun 2024 20:00:31 -0700 Subject: [PATCH] Allow uploading bug details with a live radio --- chirp/wxui/bugreport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chirp/wxui/bugreport.py b/chirp/wxui/bugreport.py index 0cc340591..ab563508f 100644 --- a/chirp/wxui/bugreport.py +++ b/chirp/wxui/bugreport.py @@ -23,6 +23,7 @@ import wx from chirp import CHIRP_VERSION +from chirp import chirp_common from chirp import logger from chirp import platform from chirp.wxui import common @@ -161,7 +162,7 @@ def prepare_report(self): manifest['config.txt'] = '\n'.join(clean_lines) editor = self.GetParent().current_editorset - if editor: + if editor and isinstance(editor._radio, chirp_common.FileBackedRadio): tmpf = tempfile.mktemp('-capture.img', 'chirp') LOG.debug('Capturing focused open file %s from %s', editor.filename, editor._radio)