diff options
author | Janrupf <werbung.janrupf@t-online.de> | 2018-04-05 19:33:31 +0200 |
---|---|---|
committer | Janrupf <werbung.janrupf@t-online.de> | 2018-04-05 19:33:31 +0200 |
commit | df6e66101c2ce5635f20df2f1d7954a681845ab1 (patch) | |
tree | 7a9d417631b2dd9f58977d68b847b132da3eb25e /application/pages/modplatform/FTBPage.cpp | |
parent | bbd523acb8bf846d27a7859d1d79f28ea92de245 (diff) | |
download | MultiMC-df6e66101c2ce5635f20df2f1d7954a681845ab1.tar MultiMC-df6e66101c2ce5635f20df2f1d7954a681845ab1.tar.gz MultiMC-df6e66101c2ce5635f20df2f1d7954a681845ab1.tar.lz MultiMC-df6e66101c2ce5635f20df2f1d7954a681845ab1.tar.xz MultiMC-df6e66101c2ce5635f20df2f1d7954a681845ab1.zip |
NOISSUE Added 3rd party pack support
Diffstat (limited to 'application/pages/modplatform/FTBPage.cpp')
-rw-r--r-- | application/pages/modplatform/FTBPage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/application/pages/modplatform/FTBPage.cpp b/application/pages/modplatform/FTBPage.cpp index 3b808799..8c8d8a7d 100644 --- a/application/pages/modplatform/FTBPage.cpp +++ b/application/pages/modplatform/FTBPage.cpp @@ -53,7 +53,12 @@ FTBPage::FTBPage(NewInstanceDialog* dialog, QWidget *parent) connect(ui->publicPackList->selectionModel(), &QItemSelectionModel::currentChanged, this, &FTBPage::onPublicPackSelectionChanged); connect(ui->thirdPartyPackList->selectionModel(), &QItemSelectionModel::currentChanged, this, &FTBPage::onThirdPartyPackSelectionChanged); + connect(ui->ftbTabWidget, &QTabWidget::currentChanged, this, &FTBPage::onTabChanged); + ui->modpackInfo->setOpenExternalLinks(true); + + ui->publicPackList->selectionModel()->reset(); + ui->thirdPartyPackList->selectionModel()->reset(); } FTBPage::~FTBPage() @@ -172,3 +177,9 @@ void FTBPage::onSortingSelectionChanged(QString data) publicFilterModel->setSorting(toSet); thirdPartyFilterModel->setSorting(toSet); } + +void FTBPage::onTabChanged(int tab) +{ + ui->publicPackList->selectionModel()->reset(); + ui->thirdPartyPackList->selectionModel()->reset(); +} |