diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
| commit | 1fc24d9474229c0f382da5def559f5de7b903f86 (patch) | |
| tree | 8a745660a498dbd6209a198679b821799f107024 /logbook/WorkedBefore.cpp | |
| parent | 65e5ae53a0358d9a3d040b13e0cf84556a7b4812 (diff) | |
| parent | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc2+repack'
Update to upstream version '2.7.0~rc2+repack'
with Debian dir c24f4e90e5ec8585c79007453c538689dc460e86
Diffstat (limited to 'logbook/WorkedBefore.cpp')
| -rwxr-xr-x | logbook/WorkedBefore.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/logbook/WorkedBefore.cpp b/logbook/WorkedBefore.cpp index f60a4e72..0186bea5 100755 --- a/logbook/WorkedBefore.cpp +++ b/logbook/WorkedBefore.cpp @@ -23,6 +23,7 @@ #include <QDateTime>
#include "Configuration.hpp"
#include "revision_utils.hpp"
+#include "Logger.hpp"
#include "qt_helpers.hpp"
#include "pimpl_impl.hpp"
@@ -225,7 +226,7 @@ namespace {
auto const logFileName = "wsjtx_log.adi";
- // Expception class suitable for using with QtConcurrent across
+ // Exception class suitable for using with QtConcurrent across
// thread boundaries
class LoaderException final
: public QException
@@ -374,6 +375,7 @@ public: void reload ()
{
+ prefixes_.reload (configuration_);
async_loader_ = QtConcurrent::run (loader, path_, &prefixes_);
loader_watcher_.setFuture (async_loader_);
}
@@ -402,11 +404,18 @@ WorkedBefore::WorkedBefore (Configuration const * configuration) {
error = e.error ();
}
- Q_EMIT finished_loading (n, error);
+ QString cty_ver = m_->prefixes_.version();
+ LOG_DEBUG(QString{"WorkedBefore::reload: CTY.DAT version %1"}.arg (cty_ver));
+ Q_EMIT finished_loading (n, cty_ver, error);
});
reload ();
}
+QString WorkedBefore::cty_version () const
+{
+ return m_->prefixes_.version ();
+}
+
void WorkedBefore::reload ()
{
m_->reload ();
@@ -668,6 +677,7 @@ bool WorkedBefore::CQ_zone_worked (int CQ_zone, QString const& mode, QString con }
}
+
bool WorkedBefore::ITU_zone_worked (int ITU_zone, QString const& mode, QString const& band) const
{
if (mode.size ())
@@ -699,3 +709,5 @@ bool WorkedBefore::ITU_zone_worked (int ITU_zone, QString const& mode, QString c }
}
}
+
+
|
