Browse Source

Utilize parent pointer appropriately

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
cb9a160366
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 6
      src/gui/executionlogwidget.cpp

6
src/gui/executionlogwidget.cpp

@ -40,8 +40,8 @@ @@ -40,8 +40,8 @@
ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &types)
: QWidget(parent)
, m_ui(new Ui::ExecutionLogWidget)
, m_msgList(new LogListWidget(MAX_LOG_MESSAGES, types))
, m_peerList(new LogListWidget(MAX_LOG_MESSAGES))
, m_msgList(new LogListWidget(MAX_LOG_MESSAGES, types, this))
, m_peerList(new LogListWidget(MAX_LOG_MESSAGES, Log::ALL, this))
{
m_ui->setupUi(this);
@ -63,8 +63,6 @@ ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &typ @@ -63,8 +63,6 @@ ExecutionLogWidget::ExecutionLogWidget(QWidget *parent, const Log::MsgTypes &typ
ExecutionLogWidget::~ExecutionLogWidget()
{
delete m_msgList;
delete m_peerList;
delete m_ui;
}

Loading…
Cancel
Save