diff options
| author | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-16 15:44:13 +0100 |
|---|---|---|
| committer | AL <26797547+Al12rs@users.noreply.github.com> | 2020-02-16 15:54:40 +0100 |
| commit | e33d0f9d35fd8c97dfca413da9a927afd8196631 (patch) | |
| tree | 5b6e67f20b274e512c6f534235e92b349e64366e /src/mainwindow.cpp | |
| parent | c4059f0dfe636a137085e1cf86ffc13a3142c59a (diff) | |
Avoid updating the downloadView when it hasn't even been initialized.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 4 |
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"); |
