diff options
author | Jannis Lübke <werbung.janrupf@t-online.de> | 2018-08-02 00:52:31 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-08-02 00:52:31 +0200 |
commit | 6aada8adf7df5075d5838512670a0b2cc2bc12a1 (patch) | |
tree | 46460efee6d3f1bd66bc611e4ad4665362d36bf0 /application/dialogs | |
parent | 6cee50eac6c25796eb3642239385b0c58860cd58 (diff) | |
download | MultiMC-6aada8adf7df5075d5838512670a0b2cc2bc12a1.tar MultiMC-6aada8adf7df5075d5838512670a0b2cc2bc12a1.tar.gz MultiMC-6aada8adf7df5075d5838512670a0b2cc2bc12a1.tar.lz MultiMC-6aada8adf7df5075d5838512670a0b2cc2bc12a1.tar.xz MultiMC-6aada8adf7df5075d5838512670a0b2cc2bc12a1.zip |
NOISSUE FTB pack code implementation, cleaned up
Diffstat (limited to 'application/dialogs')
-rw-r--r-- | application/dialogs/NewInstanceDialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp index 85704ad6..bdcd1bce 100644 --- a/application/dialogs/NewInstanceDialog.cpp +++ b/application/dialogs/NewInstanceDialog.cpp @@ -144,6 +144,12 @@ void NewInstanceDialog::setSuggestedPack(const QString& name, InstanceTask* task creationTask.reset(task); ui->instNameTextBox->setPlaceholderText(name); + if(!task) + { + ui->iconButton->setIcon(MMC->icons()->getIcon("default")); + importIcon = false; + } + auto allowOK = task && !instName().isEmpty(); m_buttons->button(QDialogButtonBox::Ok)->setEnabled(allowOK); } |