From eb4b693cf881b9e3ad2587a39f862ab4759bce76 Mon Sep 17 00:00:00 2001 From: Piergiorgio Trubini Date: Sun, 27 Mar 2022 17:22:09 +0200 Subject: [PATCH 1/2] Fix bookmark file open when in sweep mode --- gqrx-scan.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gqrx-scan.c b/gqrx-scan.c index 6380414..acbe0d6 100644 --- a/gqrx-scan.c +++ b/gqrx-scan.c @@ -1389,9 +1389,12 @@ int main(int argc, char **argv) { strcpy (to, print_freq(opt_max_freq)); printf ("Frequency range set from %s to %s.\n", from, to); - bookmarksfd = Open(g_bookmarksfile); - LoadFrequencies (bookmarksfd); - + if (opt_scan_mode == bookmark) + { + bookmarksfd = Open(g_bookmarksfile); + LoadFrequencies (bookmarksfd); + } + if (opt_tag_search) { char str [1024]; From 82f36cb5227208c9ff5932f6ba676da8b104029d Mon Sep 17 00:00:00 2001 From: Piergiorgio Trubini Date: Sun, 27 Mar 2022 17:22:34 +0200 Subject: [PATCH 2/2] git --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0b02700..fb8d242 100644 --- a/.gitignore +++ b/.gitignore @@ -75,3 +75,4 @@ build gqrx-scan .vscode/c_cpp_properties.json +.vscode/c_cpp_properties.json