diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-01 01:25:04 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-01 01:25:04 +0100 |
commit | fe68d5946073d92bc585b2b5372c420218807c91 (patch) | |
tree | d85c710d4f3844e8ab04e94575f6244c151f4bd5 /application/widgets/PageContainer.cpp | |
parent | 4b03dfcbd77f50d1f8fa3eb9d661ebcba764b9ba (diff) | |
download | MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.gz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.lz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.tar.xz MultiMC-fe68d5946073d92bc585b2b5372c420218807c91.zip |
GH-1645 reimplement open/close instance window based on settings
Diffstat (limited to 'application/widgets/PageContainer.cpp')
-rw-r--r-- | application/widgets/PageContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp index 840b39d4..1f46ddfc 100644 --- a/application/widgets/PageContainer.cpp +++ b/application/widgets/PageContainer.cpp @@ -94,7 +94,7 @@ bool PageContainer::selectPage(QString pageId) { index = m_proxyModel->mapFromSource(m_model->index(page->listIndex)); } - else + if(!index.isValid()) { index = m_proxyModel->index(0, 0); } |