Skip to content

Commit 2ce2b21

Browse files
authored
Merge pull request #585 from drowe67/ms-freq-suppress-update
Fix bug preventing frequency updates from being properly suppressed on Linux
2 parents ad62187 + c2c950e commit 2ce2b21

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endif()
1515
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.11" CACHE STRING "Minimum OS X deployment version")
1616

1717
set(PROJECT_NAME FreeDV)
18-
set(PROJECT_VERSION 1.9.4)
18+
set(PROJECT_VERSION 1.9.5)
1919
set(PROJECT_DESCRIPTION "HF Digital Voice for Radio Amateurs")
2020
set(PROJECT_HOMEPAGE_URL "https://freedv.org")
2121

@@ -46,7 +46,7 @@ endif(APPLE)
4646

4747
# Adds a tag to the end of the version string. Leave empty
4848
# for official release builds.
49-
set(FREEDV_VERSION_TAG "")
49+
set(FREEDV_VERSION_TAG "devel")
5050

5151
# Prevent in-source builds to protect automake/autoconf config.
5252
# If an in-source build is attempted, you will still need to clean up a few

USER_MANUAL.md

+5
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,11 @@ LDPC | Low Density Parity Check Codes - a family of powerful FEC codes
909909

910910
# Release Notes
911911

912+
## V1.9.5 TBD 2023
913+
914+
1. Bugfixes:
915+
* Fix bug preventing frequency updates from being properly suppressed when frequency control is in focus. (PR #585)
916+
912917
## V1.9.4 October 2023
913918

914919
1. Bugfixes:

src/ongui.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ bool MainFrame::OpenHamlibRig() {
335335
};
336336

337337
wxGetApp().rigFrequencyController->onRigConnected += [&](IRigController*) {
338-
if (wxGetApp().appConfiguration.rigControlConfiguration.hamlibEnableFreqModeChanges)
338+
if (wxGetApp().rigFrequencyController && wxGetApp().appConfiguration.rigControlConfiguration.hamlibEnableFreqModeChanges)
339339
{
340340
wxGetApp().rigFrequencyController->setFrequency(wxGetApp().appConfiguration.reportingConfiguration.reportingFrequency);
341341
wxGetApp().rigFrequencyController->setMode(getCurrentMode_());
@@ -401,15 +401,13 @@ bool MainFrame::OpenHamlibRig() {
401401
}
402402

403403
// Update frequency box
404-
if (!wxGetApp().appConfiguration.reportingConfiguration.reportingEnabled ||
405-
!wxGetApp().appConfiguration.reportingConfiguration.manualFrequencyReporting)
404+
if (!suppressFreqModeUpdates_ && (
405+
!wxGetApp().appConfiguration.reportingConfiguration.reportingEnabled ||
406+
!wxGetApp().appConfiguration.reportingConfiguration.manualFrequencyReporting))
406407
{
407408
m_cboReportFrequency->SetValue(wxString::Format("%.4f", freq/1000.0/1000.0));
408409
}
409410
m_txtModeStatus->Refresh();
410-
411-
// Suppress updates if the Report Frequency box has focus.
412-
suppressFreqModeUpdates_ = m_cboReportFrequency->HasFocus();
413411
});
414412
};
415413

0 commit comments

Comments
 (0)