forked from qt-creator/qt-creator
ProjectExplorer: Avoid accessing nullptr for unconfigured projects
Task-number: QTCREATORBUG-17256 Change-Id: I586c7267cbb4f9f16134c1be08aa4a738e990e80 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user