Initialized variable

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-05-03 09:09:07 +03:00
parent 42dc3ed03f
commit e4449a0ba3
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -170,7 +170,7 @@ void ResourceDownloadDialog::removeResource(const QString& pack_name)
void ResourceDownloadDialog::setButtonStatus()
{
bool selected;
auto selected = false;
for (auto page : m_container->getPages()) {
auto res = static_cast<ResourcePage*>(page);
selected = selected || res->hasSelectedPacks();