Commit af73ab36 authored by Shubham  .'s avatar Shubham .
Browse files

Some minor changes

parent 0812079f
......@@ -20,10 +20,9 @@
#include "documentationpanelplugin.h"
DocumentationPanelPlugin::DocumentationPanelPlugin(QObject* parent, QList<QVariant> args) : Cantor::PanelPlugin(parent), m_widget(nullptr)
DocumentationPanelPlugin::DocumentationPanelPlugin(QObject* parent, QList<QVariant> args) : Cantor::PanelPlugin(parent), m_widget(nullptr), m_showAtStart(true)
{
Q_UNUSED(args);
m_showAtStart = true;
}
DocumentationPanelPlugin::~DocumentationPanelPlugin()
......@@ -33,7 +32,7 @@ DocumentationPanelPlugin::~DocumentationPanelPlugin()
QWidget* DocumentationPanelPlugin::widget()
{
if(m_widget == nullptr)
if(!m_widget)
{
m_widget = new DocumentationPanelWidget(parentWidget());
}
......
......@@ -39,8 +39,8 @@ class DocumentationPanelPlugin : public Cantor::PanelPlugin
void setShowOnStartup(bool);
private:
bool m_showAtStart;
QPointer<DocumentationPanelWidget> m_widget;
bool m_showAtStart;
};
#endif /* _DOCUMENTATIONPANELPLUGIN_H */
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