Fixed a potential problem with an uninitialized variable.

This commit is contained in:
Leon Styhre 2021-04-05 14:33:36 +02:00
parent afa175b437
commit 9738957253
3 changed files with 3 additions and 3 deletions

View file

@ -324,7 +324,7 @@ void DetailedGameListView::updateInfoPanel()
mPlayCount.setVisible(true); mPlayCount.setVisible(true);
} }
bool fadingOut; bool fadingOut = false;
if (file == nullptr) { if (file == nullptr) {
fadingOut = true; fadingOut = true;
} }

View file

@ -446,7 +446,7 @@ void GridGameListView::updateInfoPanel()
mPlayCount.setVisible(true); mPlayCount.setVisible(true);
} }
bool fadingOut; bool fadingOut = false;
if (file == nullptr) { if (file == nullptr) {
fadingOut = true; fadingOut = true;
} }

View file

@ -349,7 +349,7 @@ void VideoGameListView::updateInfoPanel()
mPlayCount.setVisible(true); mPlayCount.setVisible(true);
} }
bool fadingOut; bool fadingOut = false;
if (file == nullptr) { if (file == nullptr) {
mVideoPlaying = false; mVideoPlaying = false;
fadingOut = true; fadingOut = true;