summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-12-26 20:48:38 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-02 15:38:14 +0100
commitbe0d6aef00891286f33242073627611413ad79c4 (patch)
tree037f2c69d8d11adba6be428704bb4612fd7f79fc /src/mainwindow.cpp
parent71055e373de639d9654361084f39d81211d08819 (diff)
Start working on collapsible separators.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index cfce9bef..ddde1d9b 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -87,6 +87,7 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>.
#include "listdialog.h"
#include "envshortcut.h"
#include "browserdialog.h"
+#include "modlistbypriorityproxy.h"
#include "directoryrefresher.h"
#include "shared/directoryentry.h"
@@ -543,6 +544,8 @@ MainWindow::MainWindow(Settings &settings
processUpdates();
ui->statusBar->updateNormalMessage(m_OrganizerCore);
+
+ on_groupCombo_currentIndexChanged(0);
}
void MainWindow::setupModList()
@@ -5935,7 +5938,7 @@ void MainWindow::on_groupCombo_currentIndexChanged(int index)
Qt::UserRole + 2);
} break;
default: {
- newModel = nullptr;
+ newModel = nullptr;
} break;
}
@@ -5948,7 +5951,8 @@ void MainWindow::on_groupCombo_currentIndexChanged(int index)
connect(ui->modList, SIGNAL(collapsed(QModelIndex)), newModel, SLOT(collapsed(QModelIndex)));
connect(newModel, SIGNAL(expandItem(QModelIndex)), this, SLOT(expandModList(QModelIndex)));
} else {
- m_ModListSortProxy->setSourceModel(m_OrganizerCore.modList());
+ m_ModListSortProxy->setSourceModel(new ModListByPriorityProxy(m_OrganizerCore.modList(), this));
+ // m_ModListSortProxy->setSourceModel(m_OrganizerCore.modList());
}
modFilterActive(m_ModListSortProxy->isFilterActive());
}