From e522afa63b81301caf886c5e351de2790e5b8182 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 15 May 2016 13:07:46 +0200 Subject: removed highlighting of dummy plugins --- src/pluginlist.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/pluginlist.cpp') 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 += "
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 += "
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 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; } } -- cgit v1.3.1