GH-866 load instance profile on launch and from version page

This commit is contained in:
Petr Mrázek
2015-04-15 03:12:57 +02:00
parent 28aa8f342e
commit 3507ccaf50
2 changed files with 9 additions and 1 deletions

View File

@ -62,6 +62,8 @@ VersionPage::VersionPage(OneSixInstance *inst, QWidget *parent)
ui->setupUi(this);
ui->tabWidget->tabBar()->hide();
reloadMinecraftProfile();
m_version = m_inst->getMinecraftProfile();
if (m_version)
{
@ -119,7 +121,7 @@ bool VersionPage::reloadMinecraftProfile()
{
QMessageBox::critical(
this, tr("Error"),
tr("Failed to load the version description file for reasons unknown."));
tr("Couldn't load the instance profile."));
return false;
}
}