From fb29de9c86c316fac9665718879cc9d1dc592a3c Mon Sep 17 00:00:00 2001 From: ShiraNai7 Date: Sun, 5 Feb 2017 23:39:41 +0100 Subject: [PATCH] Default hostView to nullptr to prevent crash in some cases --- src/UI/PreviewView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UI/PreviewView.h b/src/UI/PreviewView.h index 66c7211..92a60c1 100644 --- a/src/UI/PreviewView.h +++ b/src/UI/PreviewView.h @@ -24,7 +24,7 @@ namespace RstPad { private: bool frozen = false; - QOpenGLWidget *hostView; + QOpenGLWidget *hostView = nullptr; QPixmap *capture = nullptr; };