summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAl <gabriel.cortesi@outlook.com>2019-01-31 17:57:18 +0100
committerAl <gabriel.cortesi@outlook.com>2019-01-31 17:57:18 +0100
commit02433c486be3dff6e9e0801672081151143b164e (patch)
tree82357ef55b49160f41c892d7a1ed2d4eb94a442f /src/mainwindow.cpp
parentbd0efe4d60d6303863d117263f774a43a91223fa (diff)
Fixed a Failed to refresh list of esps: invalid vector<T> subscript error
caused when locking multiple mods where some of them where disabled. Skipped the disabled ones.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d35d9951..e4fe8769 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5749,7 +5749,9 @@ void MainWindow::updateESPLock(bool locked)
m_OrganizerCore.pluginList()->lockESPIndex(m_ContextRow, locked);
} else {
Q_FOREACH (const QModelIndex &idx, currentSelection.indexes()) {
- m_OrganizerCore.pluginList()->lockESPIndex(mapToModel(m_OrganizerCore.pluginList(), idx).row(), locked);
+ if (m_OrganizerCore.pluginList()->isEnabled(mapToModel(m_OrganizerCore.pluginList(), idx).row())) {
+ m_OrganizerCore.pluginList()->lockESPIndex(mapToModel(m_OrganizerCore.pluginList(), idx).row(), locked);
+ }
}
}
}