diff options
Diffstat (limited to 'plugins/ProfileEditor/forms')
-rw-r--r-- | plugins/ProfileEditor/forms/profilemanagerdialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp index fbf7ad4..13f974f 100644 --- a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp +++ b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp @@ -13,8 +13,8 @@ ProfileManagerDialog::ProfileManagerDialog(QHash<QString, QWebEngineProfile *> & connect(ui->listWidget, &QListWidget::itemPressed, this, &ProfileManagerDialog::showProfile); showProfile(nullptr); - for(const QString &name : profiles.keys()) { - ui->listWidget->addItem(name); + for(auto i = profiles.constBegin(); i != profiles.constEnd(); ++i) { + ui->listWidget->addItem(i.key()); } } |