From 06b07d281dc4ed0bc23a8d276915c209a91c747b Mon Sep 17 00:00:00 2001
From: Philippe Mavridis <philippe.mavridis@yandex.com>
Date: Sun, 10 Aug 2025 15:43:57 +0300
Subject: KPDF: Fix fullscreen crash due to uninitialized pointer

This fixes #132.

Signed-off-by: Philippe Mavridis <philippe.mavridis@yandex.com>
---
 kpdf/shell/shell.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kpdf/shell/shell.cpp b/kpdf/shell/shell.cpp
index dd2adf2e..79d1d83d 100644
--- a/kpdf/shell/shell.cpp
+++ b/kpdf/shell/shell.cpp
@@ -50,6 +50,7 @@ Shell::Shell()
   : DCOPObject("KPDFShellDCOPIface"), KParts::MainWindow(0, "KPDF::Shell"),
     m_menuBarWasShown(true),
     m_toolBarWasShown(true),
+    m_showToolBarAction(nullptr),
     m_tabs(nullptr),
     m_tabsContextMenu(nullptr),
     m_manager(nullptr),
@@ -62,6 +63,7 @@ Shell::Shell(const KURL &url)
   : DCOPObject("KPDFShellDCOPIface"), KParts::MainWindow(0, "KPDF::Shell"),
     m_menuBarWasShown(true),
     m_toolBarWasShown(true),
+    m_showToolBarAction(nullptr),
     m_tabs(nullptr),
     m_tabsContextMenu(nullptr),
     m_manager(nullptr),
-- 
cgit v1.2.3

