From: Joel Holdsworth Date: Sat, 15 Mar 2014 18:56:17 +0000 (+0100) Subject: Set PopupToolButton::_popup to NULL at construction X-Git-Tag: pulseview-0.2.0~14 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=65a53225414471cb2701db2429aa3ab9e74e5b21;p=pulseview.git Set PopupToolButton::_popup to NULL at construction --- diff --git a/pv/widgets/popuptoolbutton.cpp b/pv/widgets/popuptoolbutton.cpp index c3e938e0..74743ed4 100644 --- a/pv/widgets/popuptoolbutton.cpp +++ b/pv/widgets/popuptoolbutton.cpp @@ -26,7 +26,8 @@ namespace pv { namespace widgets { PopupToolButton::PopupToolButton(QWidget *parent) : - QToolButton(parent) + QToolButton(parent), + _popup(NULL) { connect(this, SIGNAL(clicked(bool)), this, SLOT(on_clicked(bool))); }