summaryrefslogtreecommitdiff
path: root/src/pluginlist.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-06-23 21:00:46 +0200
committerTannin <sherb@gmx.net>2016-06-23 21:00:46 +0200
commit8a3af93b39b05b95462869fc7df7169c5862c966 (patch)
tree450d2e663e6224f7e57d95655fca5fddd8416c1b /src/pluginlist.cpp
parent352975e757f5e68e1e1d2738ab0cb2e9ac5b31dc (diff)
fixed creation of data paths after changing paths in settings and update of profile list after change
Diffstat (limited to 'src/pluginlist.cpp')
-rw-r--r--src/pluginlist.cpp10
1 files changed, 5 insertions, 5 deletions
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<ESPInfo>::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<ESPInfo>::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();