diff --git a/RedPandaIDE/settingsdialog/environmentfileassociationwidget.cpp b/RedPandaIDE/settingsdialog/environmentfileassociationwidget.cpp index 45190dea..a25f6f48 100644 --- a/RedPandaIDE/settingsdialog/environmentfileassociationwidget.cpp +++ b/RedPandaIDE/settingsdialog/environmentfileassociationwidget.cpp @@ -84,7 +84,8 @@ void FileAssociationModel::saveAssociations() QMap fileTypeDescriptions; foreach (const PFileAssociationItem& item, mItems) { - if (item->selected == item->defaultSelected) + if (item->selected == item->defaultSelected + && !item->selected) continue; bool ok; fileTypes.insert("DevCpp."+item->suffix);