Skip to content

Commit

Permalink
Fixed #458 - WSJTX log record is stored incorrectly if it contains no…
Browse files Browse the repository at this point in the history
…n-ASCII
  • Loading branch information
foldynl committed Sep 10, 2024
1 parent c48a12a commit c7d8498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/UpdatableSQLRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ void UpdatableSQLRecord::updateRecord(const QSqlRecord &record)

if ( !internalRecord.contains(fieldName) )
internalRecord.append(record.field(i));
else if ( internalRecord.value(i).toString().isEmpty()
&& !record.value(i).toString().isEmpty() )
else if ( !record.value(i).toString().isEmpty()
&& internalRecord.value(fieldName).toString().isEmpty() )
internalRecord.setValue(fieldName, record.value(i));
}
}
Expand Down

0 comments on commit c7d8498

Please sign in to comment.