Skip to content

Commit edb959b

Browse files
authored
Merge pull request #16 from neural75/neural/fix_bookmark_open
Neural/fix bookmark open
2 parents a947c3a + 82f36cb commit edb959b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ build
7575
gqrx-scan
7676

7777
.vscode/c_cpp_properties.json
78+
.vscode/c_cpp_properties.json

gqrx-scan.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,12 @@ int main(int argc, char **argv) {
13891389
strcpy (to, print_freq(opt_max_freq));
13901390
printf ("Frequency range set from %s to %s.\n", from, to);
13911391

1392-
bookmarksfd = Open(g_bookmarksfile);
1393-
LoadFrequencies (bookmarksfd);
1394-
1392+
if (opt_scan_mode == bookmark)
1393+
{
1394+
bookmarksfd = Open(g_bookmarksfile);
1395+
LoadFrequencies (bookmarksfd);
1396+
}
1397+
13951398
if (opt_tag_search)
13961399
{
13971400
char str [1024];

0 commit comments

Comments
 (0)