]> sigrok.org Git - pulseview.git/commitdiff
Set PopupToolButton::_popup to NULL at construction
authorJoel Holdsworth <redacted>
Sat, 15 Mar 2014 18:56:17 +0000 (19:56 +0100)
committerJoel Holdsworth <redacted>
Sat, 15 Mar 2014 18:56:17 +0000 (19:56 +0100)
pv/widgets/popuptoolbutton.cpp

index c3e938e05b2a117f240fbc6a82a224a413ef4e1f..74743ed4e27b1fdac8a77d807fb8e579329afc12 100644 (file)
@@ -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)));
 }