From dc5e32a26cdf4f0e83e18fb2c843c3bd148352e9 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Thu, 5 Feb 2015 18:27:28 +0100 Subject: [PATCH] Try to prevent nullptr dereference of icon --- src/widget/widget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 8f6c2ca44..fcdaa2050 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -67,7 +67,8 @@ Widget::Widget(QWidget *parent) ui(new Ui::MainWindow), activeChatroomWidget{nullptr}, eventFlag(false), - eventIcon(false) + eventIcon(false), + icon{nullptr} { translator = new QTranslator; setTranslation();