Skip to content

Commit 2b58a66

Browse files
authored
Merge branch 'foldynl:master' into master
2 parents da7c154 + 79625cf commit 2b58a66

File tree

8 files changed

+40
-12
lines changed

8 files changed

+40
-12
lines changed

Changelog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025/05/11 - 0.44.1
2+
- Fixed Rotator Widget Seg Fault for new users (issue #666)
3+
14
2025/05/09 - 0.44.0
25
- [NEW] - Activity Manager - Added SKCC, UKSMG and FISTS as Dynamic Fields
36
- [NEW] - QSO - FISTS, SKCC, and UKSMG are auto-filled from MembershipQE (issue #628)

QLog.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
1010

1111
TARGET = qlog
1212
TEMPLATE = app
13-
VERSION = 0.44.0
13+
VERSION = 0.44.1
1414

1515
DEFINES += VERSION=\\\"$$VERSION\\\"
1616

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
qlog (0.44.1-1) UNRELEASED; urgency=low
2+
* Fixed Rotator Widget Seg Fault for new users (issue #666)
3+
4+
-- foldynl <[email protected]> Sun, 11 May 2025 07:30:56 +0200
5+
16
qlog (0.44.0-1) UNRELEASED; urgency=low
27
* [NEW] - Activity Manager - Added SKCC, UKSMG and FISTS as Dynamic Fields
38
* [NEW] - QSO - FISTS, SKCC, and UKSMG are auto-filled from MembershipQE (issue #628)

installer/config/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Installer>
33
<Name>QLog</Name>
4-
<Version>0.44.0</Version>
4+
<Version>0.44.1</Version>
55
<Title>QLog</Title>
66
<Publisher>OK1MLG</Publisher>
77
<StartMenuDir>QLog</StartMenuDir>

installer/packages/de.dl2ic.qlog/meta/package.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Package>
33
<DisplayName>QLog</DisplayName>
44
<Description>The QLog main application.</Description>
5-
<Version>0.44.0-1</Version>
6-
<ReleaseDate>2025-05-09</ReleaseDate>
5+
<Version>0.44.1-1</Version>
6+
<ReleaseDate>2025-05-11</ReleaseDate>
77
<Default>true</Default>
88
<Required>true</Required>
99
<Script>installscript.qs</Script>

res/io.github.foldynl.QLog.metainfo.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@
5151
<url type="vcs-browser">https://github.com/foldynl/QLog</url>
5252
<url type="contribute">https://github.com/foldynl/QLog/blob/master/CONTRIBUTING.md</url>
5353
<releases>
54+
<release version="0.44.1" date="2025-05-11">
55+
<description>
56+
<ul>
57+
<li>Fixed Rotator Widget Seg Fault for new users (issue #666)</li>
58+
</ul>
59+
</description>
60+
</release>
5461
<release version="0.44.0" date="2025-05-09">
5562
<description>
5663
<ul>

rpm_spec/qlog.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ INSTALL_ROOT=%{buildroot} make -f Makefile install
4242
%{_metainfodir}/*
4343

4444
%changelog
45+
* Sun May 11 2025 Ladislav Foldyna - 0.44.1-1
46+
- Fixed Rotator Widget Seg Fault for new users (issue #666)
47+
4548
* Fri May 9 2025 Ladislav Foldyna - 0.44.0-1
4649
- [NEW] - Activity Manager - Added SKCC, UKSMG and FISTS as Dynamic Fields
4750
- [NEW] - QSO - FISTS, SKCC, and UKSMG are auto-filled from MembershipQE (issue #628)

ui/RotatorWidget.cpp

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ MODULE_IDENTIFICATION("qlog.ui.rotatorwidget");
1515

1616
RotatorWidget::RotatorWidget(QWidget *parent) :
1717
QWidget(parent),
18+
antennaNeedle(nullptr),
19+
requestedAzimuthNeedle(nullptr),
20+
QSOAzimuthNeedle(nullptr),
1821
waitingFirstValue(true),
1922
compassScene(nullptr),
2023
ui(new Ui::RotatorWidget),
@@ -105,8 +108,11 @@ void RotatorWidget::setRequestedAz(double requestedAz)
105108
return;
106109

107110
requestedAzimuth = requestedAz;
108-
requestedAzimuthNeedle->show();
109-
requestedAzimuthNeedle->setRotation(requestedAz);
111+
if ( requestedAzimuthNeedle )
112+
{
113+
requestedAzimuthNeedle->show();
114+
requestedAzimuthNeedle->setRotation(requestedAz);
115+
}
110116
}
111117

112118
void RotatorWidget::setBearing(double in_azimuth)
@@ -129,23 +135,27 @@ void RotatorWidget::positionChanged(double in_azimuth, double in_elevation)
129135
qCDebug(function_parameters) << in_azimuth <<in_elevation;
130136

131137
antennaAzimuth = (in_azimuth < 0.0 ) ? 360.0 + in_azimuth : in_azimuth;
132-
antennaNeedle->setRotation(antennaAzimuth);
138+
if ( antennaNeedle) antennaNeedle->setRotation(antennaAzimuth);
133139
if ( waitingFirstValue )
134140
{
135141
waitingFirstValue = false;
136-
requestedAzimuthNeedle->setRotation(in_azimuth);
142+
if ( requestedAzimuthNeedle) requestedAzimuthNeedle->setRotation(in_azimuth);
137143
}
138144
ui->gotoDoubleSpinBox->blockSignals(true);
139145
ui->gotoDoubleSpinBox->setValue(antennaAzimuth);
140146
ui->gotoDoubleSpinBox->blockSignals(false);
141-
if ( qAbs(qRound(requestedAzimuth) - qRound(in_azimuth)) <= AZIMUTH_DEAD_BAND )
147+
if ( qAbs(qRound(requestedAzimuth) - qRound(in_azimuth)) <= AZIMUTH_DEAD_BAND
148+
&& requestedAzimuthNeedle )
142149
requestedAzimuthNeedle->hide();
143150
}
144151

145152
void RotatorWidget::setQSOBearing(double , double )
146153
{
147154
FCT_IDENTIFICATION;
148155

156+
if ( !QSOAzimuthNeedle )
157+
return;
158+
149159
qsoAzimuth = getQSOBearing();
150160

151161
qCDebug(runtime) << qsoAzimuth;
@@ -492,7 +502,7 @@ void RotatorWidget::rotConnected()
492502
ui->userButtonsProfileCombo->setEnabled(true);
493503
refreshRotUserButtons();
494504
waitingFirstValue = true;
495-
antennaNeedle->show();
505+
if ( antennaNeedle ) antennaNeedle->show();
496506
}
497507

498508
void RotatorWidget::rotDisconnected()
@@ -508,8 +518,8 @@ void RotatorWidget::rotDisconnected()
508518
ui->userButton_2->setEnabled(false);
509519
ui->userButton_3->setEnabled(false);
510520
ui->userButton_4->setEnabled(false);
511-
antennaNeedle->hide();
512-
requestedAzimuthNeedle->hide();
521+
if ( antennaNeedle ) antennaNeedle->hide();
522+
if ( requestedAzimuthNeedle) requestedAzimuthNeedle->hide();
513523
requestedAzimuth = qQNaN();
514524
}
515525

0 commit comments

Comments
 (0)