forked from qt-creator/qt-creator
QtSupport: Fix handling of kits
Allow creation of kits without a Qt.
Broke with ce7677a7d7
.
Change-Id: Ia6ab9746beab9f4c48b72930c32d5068bb7c733b
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -37,7 +37,6 @@ public:
|
||||
{
|
||||
m_combo = createSubWidget<QComboBox>();
|
||||
m_combo->setSizePolicy(QSizePolicy::Ignored, m_combo->sizePolicy().verticalPolicy());
|
||||
m_combo->addItem(Tr::tr("None"), -1);
|
||||
|
||||
m_manageButton = createManageButton(Constants::QTVERSION_SETTINGS_PAGE_ID);
|
||||
|
||||
@@ -75,6 +74,7 @@ private:
|
||||
{
|
||||
const GuardLocker locker(m_ignoreChanges);
|
||||
m_combo->clear();
|
||||
m_combo->addItem(Tr::tr("None"), -1);
|
||||
|
||||
IDeviceConstPtr device = BuildDeviceKitAspect::device(kit());
|
||||
const FilePath deviceRoot = device->rootPath();
|
||||
|
Reference in New Issue
Block a user