summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-02-16 15:44:13 +0100
committerAL <26797547+Al12rs@users.noreply.github.com>2020-02-16 15:54:40 +0100
commite33d0f9d35fd8c97dfca413da9a927afd8196631 (patch)
tree5b6e67f20b274e512c6f534235e92b349e64366e /src/mainwindow.cpp
parentc4059f0dfe636a137085e1cf86ffc13a3142c59a (diff)
Avoid updating the downloadView when it hasn't even been initialized.
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index d42eabac..8f2dd250 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5291,6 +5291,10 @@ void MainWindow::initDownloadView()
void MainWindow::updateDownloadView()
{
+ // this means downlaodTab initialization hasnt happened yet
+ if (ui->downloadView->model() == nullptr) {
+ return;
+ }
// set the view attribute and default row sizes
if (m_OrganizerCore.settings().interface().compactDownloads()) {
ui->downloadView->setProperty("downloadView", "compact");