diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-11-21 09:17:01 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-11-21 09:17:01 +0100 |
commit | 95f961fb6102f782482c057f51dae8ae8aed966c (patch) | |
tree | ff7e5b2f554eb4a890e4710de13d6f9ce8972f12 | |
parent | ad25c89ac4d9d5819d4d7395ff80dafe7fca3641 (diff) | |
download | MultiMC-95f961fb6102f782482c057f51dae8ae8aed966c.tar MultiMC-95f961fb6102f782482c057f51dae8ae8aed966c.tar.gz MultiMC-95f961fb6102f782482c057f51dae8ae8aed966c.tar.lz MultiMC-95f961fb6102f782482c057f51dae8ae8aed966c.tar.xz MultiMC-95f961fb6102f782482c057f51dae8ae8aed966c.zip |
GH-1731 Do not show screenshots model if it can't be set up properly
Otherwise it would show all system drives instead of screenshots.
-rw-r--r-- | application/pages/ScreenshotsPage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/pages/ScreenshotsPage.cpp b/application/pages/ScreenshotsPage.cpp index 5b406f3d..c40e391b 100644 --- a/application/pages/ScreenshotsPage.cpp +++ b/application/pages/ScreenshotsPage.cpp @@ -223,7 +223,6 @@ ScreenshotsPage::ScreenshotsPage(QString path, QWidget *parent) ui->setupUi(this); ui->tabWidget->tabBar()->hide(); - ui->listView->setModel(m_filterModel.get()); ui->listView->setIconSize(QSize(128, 128)); ui->listView->setGridSize(QSize(192, 160)); ui->listView->setSpacing(9); @@ -354,6 +353,7 @@ void ScreenshotsPage::opened() { if (m_valid) { + ui->listView->setModel(m_filterModel.get()); QString path = QDir(m_folder).absolutePath(); m_model->setRootPath(path); ui->listView->setRootIndex(m_filterModel->mapFromSource(m_model->index(path))); |