Skip to content

Commit

Permalink
prompt for content download only inside battleroom
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Mar 23, 2016
1 parent 308436c commit fd5cfb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/gui/battlelist/battlelisttab.cpp
Expand Up @@ -423,8 +423,6 @@ void BattleListTab::DoJoin(IBattle& battle)
battle.Join(STD_STRING(password));
//Change Tab to show user joining to battle is in progress
ui().mw().ShowTab(MainWindow::PAGE_JOIN);

ui().NeedsDownload(&battle, false);
}

/**
Expand Down
5 changes: 4 additions & 1 deletion src/gui/hosting/battleroomtab.cpp
Expand Up @@ -408,7 +408,6 @@ void BattleRoomTab::UpdateBattleInfo()
UpdateBattleInfo(it->first);
}
UpdateMapInfoSummary();

}

void BattleRoomTab::PrintAllySetup()
Expand Down Expand Up @@ -1199,6 +1198,10 @@ void BattleRoomTab::SetBattle(IBattle* battle)
} else {
m_host_new_btn->Show(true);
}

if (battle != nullptr) { //prevents deadlock at start
ui().NeedsDownload(battle);
}
}

void BattleRoomTab::RegenerateOptionsList()
Expand Down

0 comments on commit fd5cfb2

Please sign in to comment.