From 37f727ac0746fd85504aa46c1f023c09b3eff33a Mon Sep 17 00:00:00 2001 From: hibby Date: Fri, 16 Feb 2018 15:17:14 +0000 Subject: New upstream version 1.8.0+repack --- logbook/logbook.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'logbook/logbook.cpp') diff --git a/logbook/logbook.cpp b/logbook/logbook.cpp index f074116b..48d6a2a6 100644 --- a/logbook/logbook.cpp +++ b/logbook/logbook.cpp @@ -67,7 +67,7 @@ void LogBook::_setAlreadyWorkedFromLog() void LogBook::match(/*in*/const QString call, /*out*/ QString &countryName, bool &callWorkedBefore, - bool &countryWorkedBefore) + bool &countryWorkedBefore) const { if (call.length() > 0) { @@ -75,6 +75,7 @@ void LogBook::match(/*in*/const QString call, QString currentBand = ""; // match any band callWorkedBefore = _log.match(call,currentBand,currentMode); countryName = _countries.find(call); + if (countryName.length() > 0) // country was found countryWorkedBefore = _worked.getHasWorked(countryName); else -- cgit v1.2.3