From 8a3af93b39b05b95462869fc7df7169c5862c966 Mon Sep 17 00:00:00 2001 From: Tannin Date: Thu, 23 Jun 2016 21:00:46 +0200 Subject: fixed creation of data paths after changing paths in settings and update of profile list after change --- src/pluginlist.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pluginlist.cpp') diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index bc6a908e..44e08023 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -237,8 +237,8 @@ void PluginList::enableAll() { if (QMessageBox::question(nullptr, tr("Confirm"), tr("Really enable all plugins?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { - for (std::vector::iterator iter = m_ESPs.begin(); iter != m_ESPs.end(); ++iter) { - iter->m_Enabled = true; + for (ESPInfo &info : m_ESPs) { + info.m_Enabled = true; } emit writePluginsList(); } @@ -249,9 +249,9 @@ void PluginList::disableAll() { if (QMessageBox::question(nullptr, tr("Confirm"), tr("Really disable all plugins?"), QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) { - for (std::vector::iterator iter = m_ESPs.begin(); iter != m_ESPs.end(); ++iter) { - if (!iter->m_ForceEnabled) { - iter->m_Enabled = false; + for (ESPInfo &info : m_ESPs) { + if (!info.m_ForceEnabled) { + info.m_Enabled = false; } } emit writePluginsList(); -- cgit v1.3.1