Skip to content

Commit bd0e1fe

Browse files
committed
Fix saving the list of extensions in the Preferences dialog
Thanks to @sandman7920 for providing the analysis and fix. See issue #2467.
1 parent d144eb5 commit bd0e1fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PreferencesDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ void PreferencesDialog::saveSettings()
255255
Settings::setValue("editor", "close_button_on_tabs", ui->checkCloseButtonOnTabs->isChecked());
256256

257257
QStringList extList;
258-
for(const QListWidgetItem* item : ui->listExtensions->findItems(QString("*"), Qt::MatchWrap | Qt::MatchWildcard))
259-
extList.append(item->text());
258+
for(int i=0;i<ui->listExtensions->count();++i)
259+
extList.append(ui->listExtensions->item(i)->text());
260260
Settings::setValue("extensions", "list", extList);
261261
Settings::setValue("extensions", "disableregex", ui->checkRegexDisabled->isChecked());
262262
Settings::setValue("extensions", "enable_load_extension", ui->checkAllowLoadExtension->isChecked());

0 commit comments

Comments
 (0)