ttp://www.kdenlive.org/mantis/view.php?id=1527
svn path=/trunk/kdenlive/; revision=4352
i.next();
QStringList data = i.value().split(";", QString::SkipEmptyParts);
profile_list->addItem(i.key(), data.at(0));
i.next();
QStringList data = i.value().split(";", QString::SkipEmptyParts);
profile_list->addItem(i.key(), data.at(0));
- profile_list->setItemData(profile_list->count() - 1, data.at(1), Qt::UserRole + 1);
+ if (data.count() > 1) profile_list->setItemData(profile_list->count() - 1, data.at(1), Qt::UserRole + 1);
}
connect(profile_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateParams(int)));
slotUpdateParams(0);
}
connect(profile_list, SIGNAL(currentIndexChanged(int)), this, SLOT(slotUpdateParams(int)));
slotUpdateParams(0);