From ccae7d1520548aaec95f6bd7302dd72c6fbdd6b9 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 8 Sep 2018 13:13:24 +0200 Subject: Replace ProfileManager::profileList() with ProfileManager::idList() --- plugins/ProfileEditor/forms/profilemanagerdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/ProfileEditor/forms/profilemanagerdialog.cpp') diff --git a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp index 7920f90..72c56de 100644 --- a/plugins/ProfileEditor/forms/profilemanagerdialog.cpp +++ b/plugins/ProfileEditor/forms/profilemanagerdialog.cpp @@ -27,8 +27,8 @@ ProfileManagerDialog::ProfileManagerDialog(const ProfileManager *profiles, QWidg deleteProfile(ui->listWidget->currentItem()); }); - for(auto *profile : profiles->profileList().values()) { - addProfile(profile); + for(const QString &profileId : profiles->idList()) { + addProfile(profiles->profile(profileId)); } } -- cgit v1.2.1