Commit a4e213b7 authored by Christian Stenger's avatar Christian Stenger

ProjectExplorer: Avoid accessing nullptr for unconfigured projects

Task-number: QTCREATORBUG-17256
Change-Id: I586c7267cbb4f9f16134c1be08aa4a738e990e80
Reviewed-by: default avatarhjk <hjk@qt.io>
parent e4e1bdb2
......@@ -39,7 +39,7 @@ class Project;
class Target;
// Documentation inside.
class PROJECTEXPLORER_EXPORT ProjectImporter
class PROJECTEXPLORER_EXPORT ProjectImporter : public QObject
{
public:
ProjectImporter(const QString &path);
......
......@@ -32,6 +32,7 @@
#include <utils/wizardpage.h>
#include <QPointer>
#include <QString>
#include <QMap>
......@@ -109,7 +110,7 @@ private:
KitMatcher m_requiredMatcher;
KitMatcher m_preferredMatcher;
ProjectImporter *m_importer = nullptr;
QPointer<ProjectImporter> m_importer = nullptr;
QLayout *m_baseLayout = nullptr;
QString m_projectPath;
QString m_defaultShadowBuildLocation;
......
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