mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-11 18:28:57 -04:00
This was seriously fucked up :) Now it seems OK.
This commit is contained in:
+1
-7
@@ -1562,8 +1562,6 @@ void AppFrame::saveSession(std::string fileName) {
|
||||
*demod->newChild("frequency") = (*instance_i)->getFrequency();
|
||||
*demod->newChild("type") = (*instance_i)->getDemodulatorType();
|
||||
|
||||
//TODO: now we can only 7 bit strings properly, so convert back to Ascii...
|
||||
// wxString intermediate((*instance_i)->getDemodulatorUserLabel());
|
||||
demod->newChild("user_label")->element()->set((*instance_i)->getDemodulatorUserLabel());
|
||||
|
||||
*demod->newChild("squelch_level") = (*instance_i)->getSquelchLevel();
|
||||
@@ -1700,11 +1698,7 @@ bool AppFrame::loadSession(std::string fileName) {
|
||||
DataNode *demodUserLabel = demod->hasAnother("user_label") ? demod->getNext("user_label") : nullptr;
|
||||
|
||||
if (demodUserLabel) {
|
||||
//toString() re-formats strings recognized as numerals, but at least it works for
|
||||
//all kind of data.
|
||||
//TODO: DataTree do not support 16 bit strings, so...
|
||||
// std::string rawStr = demodUserLabel->element()->toString();
|
||||
// user_label.assign(rawStr.begin(), rawStr.end());
|
||||
|
||||
demodUserLabel->element()->get(user_label);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user