summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2013-06-08 22:23:25 +0200
committerTannin <devnull@localhost>2013-06-08 22:23:25 +0200
commit6069decb159ec30b7a69649294ee0e89783bb717 (patch)
treeb1dadc87188d97c9228880c31457751170f3a9bf /src/modlist.cpp
parent30dece9093fc27779c9d91d9b573ea6ca2430345 (diff)
- mod list no longer loses selection whenever categories context menu gets hidden
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index f87687bb..9510fd46 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -656,8 +656,9 @@ void ModList::removeRow(int row, const QModelIndex&)
void ModList::notifyChange(int rowStart, int rowEnd)
{
if (rowStart < 0) {
- beginResetModel();
- endResetModel();
+ reset();
+// beginResetModel();
+// endResetModel();
} else {
if (rowEnd == -1) rowEnd = rowStart;
emit dataChanged(this->index(rowStart, 0), this->index(rowEnd, this->columnCount() - 1));