1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 16:25:16 +03:00

[Companion] clang warning fixed

This commit is contained in:
Bertrand Songis 2017-01-20 20:10:07 +01:00
parent 7e0c461740
commit 0ff8ed35b9

View file

@ -202,7 +202,7 @@ void MdiChild::doCopy(QByteArray * gmData)
{
foreach(QModelIndex index, ui->modelsList->selectionModel()->selectedIndexes()) {
if (index.column() == 0) {
unsigned int modelIndex = modelsListModel->getModelIndex(index);
int modelIndex = modelsListModel->getModelIndex(index);
if (modelIndex >= 0) {
gmData->append('M');
gmData->append((char *) &radioData.models[modelIndex], sizeof(ModelData));