From e33d0f9d35fd8c97dfca413da9a927afd8196631 Mon Sep 17 00:00:00 2001 From: AL <26797547+Al12rs@users.noreply.github.com> Date: Sun, 16 Feb 2020 15:44:13 +0100 Subject: Avoid updating the downloadView when it hasn't even been initialized. --- src/mainwindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainwindow.cpp') 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"); -- cgit v1.3.1