Skip to content

Commit

Permalink
Primary subdivisions are read on DB update
Browse files Browse the repository at this point in the history
  • Loading branch information
ea4k committed Aug 10, 2024
1 parent fe5017d commit 4503525
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6065,6 +6065,8 @@ bool DataBase::updateTo026()
//qDebug() << Q_FUNC_INFO << " - 40" ;
if (!updateTableLog(7))
return false;
if (!recreateTablePrimarySubdivisions())
return false;
//qDebug() << Q_FUNC_INFO << " - 50" ;
return updateDBVersion(softVersion, "0.026");
}
Expand Down
4 changes: 2 additions & 2 deletions src/database/db_adif_primary_subdvisions_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ bool DB_ADIF_Primary_Subdvisions_data::addValues(const QString &rows, const QStr

foreach (aux, values)
{
oneValue = QString("%1 (%2)").arg(sq).arg(aux);
oneValue = QString("%1 (%2)").arg(sq, aux);
if (!exe.execQuery(Q_FUNC_INFO, oneValue))
return false;
}
Expand Down Expand Up @@ -228,7 +228,7 @@ bool DB_ADIF_Primary_Subdvisions_data::add_CT_272()
<< "'272', 'Viana do Castelo', 'VC', 'CT', '14', '37', '', '-1', '', '', 'N'"
<< "'272', 'Vila Real', 'VR', 'CT', '14', '37', '', '-1', '', '', 'N'"
<< "'272', 'Viseu', 'VS', 'CT', '14', '37', '', '-1', '', '', 'N'"
;
;

return addValues(rows, values);
}
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ void MainWindow::slotQRZTextChanged(QString _qrz)
cleanQRZCOMreceivedDataFromUI();
//qDebug()<< Q_FUNC_INFO << ": currentQRZ: " <<_qrz ;

QString pref = util->getPrefixFromCall(_qrz);
//QString pref = util->getPrefixFromCall(_qrz);
//logEvent(Q_FUNC_INFO, QString("Call/Prefix: %1/%2").arg(_qrz).arg(pref), Devel);
//currentEntity = world->getQRZARRLId(pref);
//validar por que no puedo tirar o usar el prefijo directamente
Expand Down
4 changes: 2 additions & 2 deletions src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ void Utilities::setSpecialCalls (const QStringList &_p)
bool Utilities::isAKnownPrefix(const QString &_c)
{// TODO: Complete with https://rsgb.org/main/operating/licensing-novs-visitors/international-prefixes/
qDebug() << Q_FUNC_INFO << ": " << _c;
QString aux;
// QString aux;
if (_c.isNull() )
{
qDebug() << Q_FUNC_INFO << ": END - 1";
Expand All @@ -860,7 +860,7 @@ bool Utilities::isAKnownPrefix(const QString &_c)
bool Utilities::isAKnownCall(const QString &_c)
{
//qDebug() << Q_FUNC_INFO << ": " << _c;
QString aux;
//QString aux;
if (_c.isNull() )
{
//qDebug() << Q_FUNC_INFO << ": END - 1";
Expand Down

0 comments on commit 4503525

Please sign in to comment.