diff options
| author | Tannin <sherb@gmx.net> | 2016-05-15 13:07:46 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2016-05-15 13:07:46 +0200 |
| commit | e522afa63b81301caf886c5e351de2790e5b8182 (patch) | |
| tree | 31238dceb34d03a4b2a46723d62f262e369892dd | |
| parent | e3c3c2dcc4c31e831ef17687cbf02ba1519f7450 (diff) | |
removed highlighting of dummy plugins
| -rw-r--r-- | src/pluginlist.cpp | 10 | ||||
| -rw-r--r-- | src/pluginlist.h | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp index 002c17e1..5c21d0c8 100644 --- a/src/pluginlist.cpp +++ b/src/pluginlist.cpp @@ -735,8 +735,6 @@ QVariant PluginList::data(const QModelIndex &modelIndex, int role) const if (m_ESPs[index].m_IsMaster) {
result.setItalic(true);
result.setWeight(QFont::Bold);
- } else if (m_ESPs[index].m_IsDummy) {
- result.setItalic(true);
}
return result;
} else if (role == Qt::TextAlignmentRole) {
@@ -777,9 +775,6 @@ QVariant PluginList::data(const QModelIndex &modelIndex, int role) const if (m_ESPs[index].m_HasIni) {
text += "<br>There is an ini file connected to this esp. Its settings will be added to your game settings, overwriting "
"in case of conflicts.";
- } else if (m_ESPs[index].m_IsDummy) {
- text += "<br>This file is a dummy! It exists only so the bsa with the same name gets loaded. If you let MO manage archives you "
- "don't need this: Enable the archive with the same name in the \"Archive\" tab and disable this plugin.";
}
toolTip += text;
}
@@ -802,9 +797,6 @@ QVariant PluginList::data(const QModelIndex &modelIndex, int role) const if (m_ESPs[index].m_HasIni) {
result.append(":/MO/gui/attachment");
}
- if (m_ESPs[index].m_IsDummy && m_ESPs[index].m_Enabled && !m_ESPs[index].m_HasIni) {
- result.append(":/MO/gui/edit_clear");
- }
return result;
}
return QVariant();
@@ -1117,7 +1109,6 @@ PluginList::ESPInfo::ESPInfo(const QString &name, bool enabled, try {
ESP::File file(ToWString(fullPath));
m_IsMaster = file.isMaster();
- m_IsDummy = file.isDummy();
m_Author = QString::fromLatin1(file.author().c_str());
m_Description = QString::fromLatin1(file.description().c_str());
std::set<std::string> masters = file.masters();
@@ -1127,7 +1118,6 @@ PluginList::ESPInfo::ESPInfo(const QString &name, bool enabled, } catch (const std::exception &e) {
qCritical("failed to parse esp file %s: %s", qPrintable(fullPath), e.what());
m_IsMaster = false;
- m_IsDummy = false;
}
}
diff --git a/src/pluginlist.h b/src/pluginlist.h index c6927353..78623cae 100644 --- a/src/pluginlist.h +++ b/src/pluginlist.h @@ -275,7 +275,6 @@ private: FILETIME m_Time;
QString m_OriginName;
bool m_IsMaster;
- bool m_IsDummy;
QString m_Author;
QString m_Description;
bool m_HasIni;
|
