From 9e1bc98f383386b020d2cb5d341d08dcb1030fcb Mon Sep 17 00:00:00 2001 From: Albert S Date: Wed, 26 Oct 2022 13:13:20 +0200 Subject: [PATCH] gui: mainwindow.h: Initialize preview-related members with a default --- gui/mainwindow.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 0079b8c..6832233 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -44,9 +44,9 @@ class MainWindow : public QMainWindow QHash previewOrder; /* Quick lookup for the order a preview should have */ QMap previewWidgetOrderCache /* Saves those that arrived out of order to be inserted later at the correct pos */; - bool previewDirty; - int previewsPerPage; - unsigned int processedPdfPreviews; + bool previewDirty = false; + int previewsPerPage = 20; + unsigned int processedPdfPreviews = 0; unsigned int currentPreviewGeneration = 1; void connectSignals();