Skip to content

Commit

Permalink
Fix science label being empty on reselecting researched tech !build !…
Browse files Browse the repository at this point in the history
…macos
  • Loading branch information
rsubtil committed Sep 13, 2023
1 parent ef0cbd3 commit 77463e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/views/view_research.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ void real_science_report_dialog_update(void *unused)

if (nullptr != client.conn.playing) {
struct research *research = research_get(client_player());
str = QString(_("%1 (+%2)"))
.arg(client_player()->economic.science_acc)
.arg(get_bulbs_per_turn(nullptr, nullptr, nullptr));
if (research->researching == A_UNSET) {
str = QString(_("%1 (+%2)"))
.arg(client_player()->economic.science_acc)
Expand Down Expand Up @@ -428,8 +431,6 @@ void real_science_report_dialog_update(void *unused)
.arg(per_turn);
}
}
} else {
str = QStringLiteral(" ");
}

if (blk) {
Expand Down

0 comments on commit 77463e5

Please sign in to comment.