mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-09-06 07:07:48 -04:00
LABEL: Fix for crash when labels looks like numbers...
This commit is contained in:
parent
d7d9fc8c32
commit
9de22ffaf1
@ -1695,9 +1695,12 @@ bool AppFrame::loadSession(std::string fileName) {
|
|||||||
|
|
||||||
DataNode *demodUserLabel = demod->hasAnother("user_label") ? demod->getNext("user_label") : nullptr;
|
DataNode *demodUserLabel = demod->hasAnother("user_label") ? demod->getNext("user_label") : nullptr;
|
||||||
|
|
||||||
if (demodUserLabel && demodUserLabel->element()->getDataType() == DATA_STRING) {
|
if (demodUserLabel) {
|
||||||
demodUserLabel->element()->get(user_label);
|
//toString() re-formats strings recognized as numerals, but at least it works for
|
||||||
|
//all kind of data.
|
||||||
|
user_label = demodUserLabel->element()->toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ModemSettings mSettings;
|
ModemSettings mSettings;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user