Commit 69fae3a3 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix possible settings dialog crash.

Fixes #1567
parent b9c69e42
Pipeline #261216 failed with stage
in 6 minutes and 51 seconds
......@@ -404,7 +404,7 @@ void EncodingTimelinePreviewProfilesChooser::filterPreviewProfiles(const QString
item->setFlags(item->flags() | Qt::ItemIsEnabled);
}
QStandardItem *item = model->item(current);
if (!(item->flags() & Qt::ItemIsEnabled)) {
if (!item || !(item->flags() & Qt::ItemIsEnabled)) {
// Currently selected profile is not usable, switch back to automatic
for (int i = 0; i < max; i++) {
if (m_profilesCombo->itemData(i).isNull()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment