diff options
Diffstat (limited to 'src/preferences/broadcastsettingsmodel.cpp')
-rw-r--r-- | src/preferences/broadcastsettingsmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preferences/broadcastsettingsmodel.cpp b/src/preferences/broadcastsettingsmodel.cpp index c5eacab004..88da2bf050 100644 --- a/src/preferences/broadcastsettingsmodel.cpp +++ b/src/preferences/broadcastsettingsmodel.cpp @@ -25,7 +25,8 @@ void BroadcastSettingsModel::resetFromSettings(BroadcastSettingsPointer pSetting m_profiles.clear(); } - for(BroadcastProfilePtr profile : pSettings->profiles()) { + const QList<BroadcastProfilePtr> profiles = pSettings->profiles(); + for (BroadcastProfilePtr profile : profiles) { BroadcastProfilePtr copy = profile->valuesCopy(); copy->setConnectionStatus(profile->connectionStatus()); connect(profile.data(), SIGNAL(statusChanged(bool)), |