summaryrefslogtreecommitdiffstats
path: root/application/pages/global
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-01-22 15:45:57 +0100
committerPetr Mrázek <peterix@gmail.com>2017-01-22 15:45:57 +0100
commitc7f89ec6b52bad427caed008d7919cef45518285 (patch)
treecf25def847cdec96d665016dfa4c47fa5ddee3d5 /application/pages/global
parentcf43abc87ef56247e3012fa0d1fcefe7cb561824 (diff)
downloadMultiMC-c7f89ec6b52bad427caed008d7919cef45518285.tar
MultiMC-c7f89ec6b52bad427caed008d7919cef45518285.tar.gz
MultiMC-c7f89ec6b52bad427caed008d7919cef45518285.tar.lz
MultiMC-c7f89ec6b52bad427caed008d7919cef45518285.tar.xz
MultiMC-c7f89ec6b52bad427caed008d7919cef45518285.zip
GH-1798 Do not enable skin upload button without selected account.
Diffstat (limited to 'application/pages/global')
-rw-r--r--application/pages/global/AccountListPage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/pages/global/AccountListPage.cpp b/application/pages/global/AccountListPage.cpp
index 73a00f2a..8edcad98 100644
--- a/application/pages/global/AccountListPage.cpp
+++ b/application/pages/global/AccountListPage.cpp
@@ -109,6 +109,7 @@ void AccountListPage::updateButtonStates()
ui->rmAccountBtn->setEnabled(selection.size() > 0);
ui->setDefaultBtn->setEnabled(selection.size() > 0);
+ ui->uploadSkinBtn->setEnabled(selection.size() > 0);
ui->noDefaultBtn->setDown(m_accounts->activeAccount().get() == nullptr);
}