From 6069decb159ec30b7a69649294ee0e89783bb717 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sat, 8 Jun 2013 22:23:25 +0200 Subject: - mod list no longer loses selection whenever categories context menu gets hidden --- src/modlist.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modlist.cpp') 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)); -- cgit v1.3.1