summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
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");