Commit 0360017b authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

QmlJSEditor: Remove redundant null test

Change-Id: I923fc58d1d7d305033584b33668915a6e7daba36
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent e7a7c02b
......@@ -111,10 +111,8 @@ QuickToolBar::QuickToolBar(QObject *parent)
QuickToolBar::~QuickToolBar()
{
//if the pane was never activated the widget is not in a widget tree
if (!m_widget.isNull())
delete m_widget.data();
m_widget = 0;
delete m_widget.data();
m_widget = 0;
}
void QuickToolBar::apply(TextEditor::BaseTextEditor *editor, Document::Ptr document, const ScopeChain *scopeChain, AST::Node *node, bool update, bool force)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment