diff options
Diffstat (limited to 'src/mainwindow.cpp')
| -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"); |
