diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-09 01:30:23 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-09 01:30:23 +0100 |
commit | ef2cbe16e611da68f3cb529f87f4ecb3038af161 (patch) | |
tree | 7e9c6f9ab45ae90891e64cc245547c4b8cb79b66 /application/dialogs/VersionSelectDialog.cpp | |
parent | 57accb1cbb4a2deee050ded9f541faeacfbcc787 (diff) | |
download | MultiMC-ef2cbe16e611da68f3cb529f87f4ecb3038af161.tar MultiMC-ef2cbe16e611da68f3cb529f87f4ecb3038af161.tar.gz MultiMC-ef2cbe16e611da68f3cb529f87f4ecb3038af161.tar.lz MultiMC-ef2cbe16e611da68f3cb529f87f4ecb3038af161.tar.xz MultiMC-ef2cbe16e611da68f3cb529f87f4ecb3038af161.zip |
NOISSUE when there is a version added already, preselect it in the version select dialog
Diffstat (limited to 'application/dialogs/VersionSelectDialog.cpp')
-rw-r--r-- | application/dialogs/VersionSelectDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application/dialogs/VersionSelectDialog.cpp b/application/dialogs/VersionSelectDialog.cpp index de525d89..e0191f0a 100644 --- a/application/dialogs/VersionSelectDialog.cpp +++ b/application/dialogs/VersionSelectDialog.cpp @@ -83,6 +83,12 @@ void VersionSelectDialog::retranslate() m_refreshButton->setText(tr("&Refresh")); } +void VersionSelectDialog::setCurrentVersion(const QString& version) +{ + m_currentVersion = version; + m_versionWidget->setCurrentVersion(version); +} + void VersionSelectDialog::setEmptyString(QString emptyString) { m_versionWidget->setEmptyString(emptyString); |