diff options
| author | Tannin <devnull@localhost> | 2013-03-27 20:48:33 +0100 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2013-03-27 20:48:33 +0100 |
| commit | e0eb97922d5ef4a1448e76f13374ebfda7fda403 (patch) | |
| tree | 00f32ad3f680e51a210bee8155624d71f608bb15 /src/modlist.cpp | |
| parent | 74c75e60d67b66a63225239c1f6b1403662857aa (diff) | |
- added hooks for getFileVersion* functions
- automatic donwload retry
- support for storing multiple download urls
- improved "query info" functionality
- some cleanup to download manager code
- external fomod installer dialog are now brought to front
- added shell... functions to have windows handle problematic situations
- added visual clue when filters are active
- esps are now automatically activated when installing a mod
- added option to never endorse a mod
- added "previous" and "next" buttons to mod info dialog
- improved the way messagedialog text is shortened
- coloring in mod info dialog now visible in other color schemes
- plugin list is now saved automatically
- vanilla bsas are now enabled even if they are not listed in the ini file
- bugfix: setting mod to maximum now doesn't try to place the mod below overwrite
Diffstat (limited to 'src/modlist.cpp')
| -rw-r--r-- | src/modlist.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp index 1f318e0d..1d5db5a0 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -51,7 +51,6 @@ ModList::ModList(QObject *parent) : QAbstractItemModel(parent), m_Profile(NULL), m_Modified(false), m_FontMetrics(QFont()) { -// setSupportedDragActions(Qt::MoveAction); } @@ -294,8 +293,7 @@ bool ModList::renameMod(int index, const QString &newName) emit modRenamed(oldName, newName); // invalidate the currently displayed state of this list -#pragma message("why is this necessary? It unselects the current selection") - notifyChange(-1); +// notifyChange(-1); return true; } @@ -314,7 +312,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) m_Profile->setModEnabled(index.row(), enabled); m_Modified = true; - emit modlist_changed(index.row()); + emit modlist_changed(index, role); } return true; } else if (role == Qt::EditRole) { @@ -328,7 +326,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) if (ok) { m_Profile->setModPriority(index.row(), newPriority); - emit modlist_changed(index.row()); + emit modlist_changed(index, role); return true; } else { return false; @@ -340,7 +338,7 @@ bool ModList::setData(const QModelIndex &index, const QVariant &value, int role) int newID = value.toInt(&ok); if (ok) { info->setNexusID(newID); - emit modlist_changed(index.row()); + emit modlist_changed(index, role); return true; } else { return false; @@ -592,7 +590,7 @@ QString ModList::getColumnName(int column) { switch (column) { case COL_FLAGS: return tr("Flags"); - case COL_NAME: return tr("Name"); + case COL_NAME: return tr("Mod Name"); case COL_VERSION: return tr("Version"); case COL_PRIORITY: return tr("Priority"); case COL_CATEGORY: return tr("Category"); |
