GH-2211 fix crash in first launch wizard
This commit is contained in:
parent
370bbada87
commit
fa8f19b046
@ -42,7 +42,6 @@ void JavaSettingsWidget::setupUi()
|
|||||||
m_verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
|
m_verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
|
||||||
|
|
||||||
m_versionWidget = new VersionSelectWidget(this);
|
m_versionWidget = new VersionSelectWidget(this);
|
||||||
m_versionWidget->setResizeOn(2);
|
|
||||||
m_verticalLayout->addWidget(m_versionWidget);
|
m_verticalLayout->addWidget(m_versionWidget);
|
||||||
|
|
||||||
m_horizontalLayout = new QHBoxLayout();
|
m_horizontalLayout = new QHBoxLayout();
|
||||||
@ -117,6 +116,7 @@ void JavaSettingsWidget::setupUi()
|
|||||||
void JavaSettingsWidget::initialize()
|
void JavaSettingsWidget::initialize()
|
||||||
{
|
{
|
||||||
m_versionWidget->initialize(MMC->javalist().get());
|
m_versionWidget->initialize(MMC->javalist().get());
|
||||||
|
m_versionWidget->setResizeOn(2);
|
||||||
auto s = MMC->settings();
|
auto s = MMC->settings();
|
||||||
// Memory
|
// Memory
|
||||||
observedMinMemory = s->get("MinMemAlloc").toInt();
|
observedMinMemory = s->get("MinMemAlloc").toInt();
|
||||||
|
Loading…
Reference in New Issue
Block a user