diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-12-27 17:45:04 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:14 +0100 |
| commit | c778f01c895d3c09ceff779dc782fd221186c587 (patch) | |
| tree | 3c86cbd36b3f1e9edabce091e840e4044d036cd2 /src | |
| parent | 604da06bd82e012c4e38ac6c780505ee3de24903 (diff) | |
Only expand if model is correct.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index be879dc6..5fe1b39d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1275,10 +1275,11 @@ void MainWindow::espFilterChanged(const QString &filter) void MainWindow::expandModList(const QModelIndex &index) { - ui->modList->expand(m_ModListSortProxy->mapFromSource(index)); + if (index.model() == m_ModListSortProxy->sourceModel()) { + ui->modList->expand(m_ModListSortProxy->mapFromSource(index)); + } } - bool MainWindow::addProfile() { QComboBox *profileBox = findChild<QComboBox*>("profileBox"); |
