AndroidManifestEditor: Initialize SDK versions when setting up UI

Instead of initializing it when opening the file, which has nothing to do
with it.

Change-Id: I5270d424c26dde7a66c0916281f718f779b1b2ac
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Eike Ziller
2015-05-28 16:05:05 +02:00
parent ea859787ca
commit 154b3e52b2

View File

@@ -202,6 +202,8 @@ void AndroidManifestEditorWidget::initializePage()
packageGroupBox->setLayout(formLayout);
updateSdkVersions();
connect(m_packageNameLineEdit, SIGNAL(textEdited(QString)),
this, SLOT(setPackageName()));
connect(m_versionCode, SIGNAL(valueChanged(int)),
@@ -503,7 +505,6 @@ void AndroidManifestEditorWidget::updateTargetComboBox()
bool AndroidManifestEditorWidget::open(QString *errorString, const QString &fileName, const QString &realFileName)
{
bool result = m_textEditorWidget->open(errorString, fileName, realFileName);
updateSdkVersions();
updateAfterFileLoad(result);
return result;
}