summaryrefslogtreecommitdiff
path: root/src/pluginlist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-05-13 21:20:44 +0200
committerTannin <devnull@localhost>2014-05-13 21:20:44 +0200
commit977b4075254ca79e68bbdec2e689eccb291fe701 (patch)
tree0afa2ad971bb786ca6acfa19944cd8381e925c8b /src/pluginlist.cpp
parentf4b1aba61ae81b4151695798006b3a787e0de6de (diff)
- mod list context menu split into two menus (one for whole list, one for selected mods)
- added option to combine category filters using "or" - added context menu option for deselecting category filters - slightly changed ui on the category filters - added a sample plugin for cpp that can be built without building the rest of MO - simple installer can now be configured to run without any user interaction - extended interface for python plugins - iorganizer implementation moved out of the main window - nexus requests from plugins will now be identified in the user agent - bugfix: shortcuts created from MO used the wrong working directory - bugfix: deactivation of bsas didn't stick - bugfix: file hiding mechanism wasn't active - bugfix: executables linked on the toolbar couldn't be removed if the executable was removed first - bugfix: the endorsement-filter couldn't be combined with other filters - bugfix: python interface to repository bridge was broken
Diffstat (limited to 'src/pluginlist.cpp')
-rw-r--r--src/pluginlist.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp
index 929e0476..24504f92 100644
--- a/src/pluginlist.cpp
+++ b/src/pluginlist.cpp
@@ -397,7 +397,7 @@ void PluginList::writePlugins(const QString &fileName, bool writeUnchecked) cons
int writtenCount = 0;
for (size_t i = 0; i < m_ESPs.size(); ++i) {
int priority = m_ESPsByPriority[i];
- if ((m_ESPs[priority].m_Enabled || writeUnchecked) && !m_ESPs[priority].m_Removed) {
+ if (m_ESPs[priority].m_Enabled || writeUnchecked) {
//file.write(m_ESPs[priority].m_Name.toUtf8());
if (!textCodec->canEncode(m_ESPs[priority].m_Name)) {
invalidFileNames = true;
@@ -435,7 +435,11 @@ void PluginList::writeLockedOrder(const QString &fileName) const
}
-void PluginList::saveTo(const QString &pluginFileName, const QString &loadOrderFileName, const QString &lockedOrderFileName, const QString& deleterFileName, bool hideUnchecked) const
+void PluginList::saveTo(const QString &pluginFileName
+ , const QString &loadOrderFileName
+ , const QString &lockedOrderFileName
+ , const QString& deleterFileName
+ , bool hideUnchecked) const
{
writePlugins(pluginFileName, false);
writePlugins(loadOrderFileName, true);
@@ -449,7 +453,7 @@ void PluginList::saveTo(const QString &pluginFileName, const QString &loadOrderF
for (size_t i = 0; i < m_ESPs.size(); ++i) {
int priority = m_ESPsByPriority[i];
- if (m_ESPs[priority].m_Removed) {
+ if (!m_ESPs[priority].m_Enabled) {
deleterFile.write(m_ESPs[priority].m_Name.toUtf8());
deleterFile.write("\r\n");
}
@@ -1082,7 +1086,7 @@ bool PluginList::eventFilter(QObject *obj, QEvent *event)
PluginList::ESPInfo::ESPInfo(const QString &name, bool enabled, FILETIME time,
const QString &originName, const QString &fullPath,
bool hasIni)
- : m_Name(name), m_Enabled(enabled), m_ForceEnabled(enabled), m_Removed(false),
+ : m_Name(name), m_Enabled(enabled), m_ForceEnabled(enabled),
m_Priority(0), m_LoadOrder(-1), m_Time(time), m_OriginName(originName), m_HasIni(hasIni)
{
try {