Fixed bug when right click on band activity would display incorrect callsign that was selected in the call activity

This commit is contained in:
Jordan Sherer 2018-09-01 18:02:02 -04:00
parent c5531a5177
commit a5e1d0206b

View File

@ -1103,6 +1103,9 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
connect(ui->tableWidgetRXAll, &QTableWidget::customContextMenuRequested, this, [this, clearAction3, clearActionAll, removeActivity, logAction](QPoint const &point){
QMenu * menu = new QMenu(ui->tableWidgetRXAll);
// clear the selection of the call widget on right click
ui->tableWidgetCalls->selectionModel()->clearSelection();
QString selectedCall = callsignSelected();
bool missingCallsign = selectedCall.isEmpty();
@ -1164,6 +1167,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
connect(ui->tableWidgetCalls, &QTableWidget::customContextMenuRequested, this, [this, logAction, clearAction4, clearActionAll, removeStation](QPoint const &point){
QMenu * menu = new QMenu(ui->tableWidgetCalls);
ui->tableWidgetRXAll->selectionModel()->clearSelection();
QString selectedCall = callsignSelected();
bool isAllCall = isAllCallIncluded(selectedCall);
bool missingCallsign = selectedCall.isEmpty();