GH-1798 Do not enable skin upload button without selected account.

This commit is contained in:
Petr Mrázek 2017-01-22 15:45:57 +01:00
parent cf43abc87e
commit c7f89ec6b5

View File

@ -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);
}