Skip to content

Commit

Permalink
Fixed #394 - Bandmap select previous selected callsign issue
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Jun 29, 2024
1 parent cf746ea commit 1b5cd18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ TBC - 0.37.0
- Fixed QRZ Lookup Not Including Full Name - History (issue #388)
- Fixed Spot Last QSO contains TX freq, should contain RX freq (issue #390)
- Fixed Spot Last QSO must contain Freq in kHz (issue #391)
- Fixed Bandmap select previous selected callsign issue (issue #394)
- Fixed Malfunctioning tuning of WSJTX Alert spot

2024/06/07 - 0.36.0
Expand Down
11 changes: 11 additions & 0 deletions ui/BandmapWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,17 @@ void BandmapWidget::spotClicked(const QString &call,
emit tuneDx(call, freq, mode);
lastTunedDX.callsign = call;
lastTunedDX.freq = freq;

// allow to re-click the spot.
// I don't want to use double click here because users expect to single-clicking on the map and double click
// can emit tuneDX two times what causes an issue in Callbooks section and other parts of QLog.
// However, to be able to click on the callsign again, it needs to be disabled for a short while.
// That's why there is a delay.
QTimer::singleShot(3000, this, [this]() {
lastTunedDX.callsign.clear();
lastTunedDX.freq = 0.0;
});

}

void BandmapWidget::showContextMenu(const QPoint &point)
Expand Down

0 comments on commit 1b5cd18

Please sign in to comment.