mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Proposition : model number handling (#4308)
* Try something for discussions * Better alternative * Typo * Improve * Change delimiter * Move delimiter to space * * Refactoring of CategorizedStorageFormat::load() and CategorizedStorageFormat::save() to support unused model slots * Fix all unsafe usages of QString::toStdString().c_str() * Fixed radio data import [Horus] (broken in0f90ff0b65
) (cherry picked from commitcc12601a01
) * Added Q_OBJECT to TreeModel and some cosmetics (cherry picked from commitf40e64c2aa
) * Cleanup
This commit is contained in:
parent
de68db0905
commit
2fbe5a78d1
7 changed files with 85 additions and 42 deletions
|
@ -473,7 +473,7 @@ void ModelsListWidget::duplicate()
|
|||
while (i<getCurrentFirmware()->getCapability(Models)) {
|
||||
if (radioData->models[i].isEmpty()) {
|
||||
radioData->models[i] = *model;
|
||||
strcpy(radioData->models[i].filename, radioData->getNextModelFilename().toStdString().c_str());
|
||||
strcpy(radioData->models[i].filename, qPrintable(radioData->getNextModelFilename()));
|
||||
((MdiChild *)parent())->setModified();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue