mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 16:15:39 +00:00
Fixed crash in detailed view when cursor is over a folder.
This commit is contained in:
parent
e5e4394eb4
commit
0c802a2107
|
@ -189,6 +189,11 @@ void DetailedGameListView::updateInfoPanel()
|
||||||
fadingOut = true;
|
fadingOut = true;
|
||||||
}else{
|
}else{
|
||||||
mImage.setImage(file->metadata.get("image"));
|
mImage.setImage(file->metadata.get("image"));
|
||||||
|
mDescription.setText(file->metadata.get("desc"));
|
||||||
|
mDescContainer.reset();
|
||||||
|
|
||||||
|
if(file->getType() == GAME)
|
||||||
|
{
|
||||||
mRating.setValue(file->metadata.get("rating"));
|
mRating.setValue(file->metadata.get("rating"));
|
||||||
mReleaseDate.setValue(file->metadata.get("releasedate"));
|
mReleaseDate.setValue(file->metadata.get("releasedate"));
|
||||||
mDeveloper.setValue(file->metadata.get("developer"));
|
mDeveloper.setValue(file->metadata.get("developer"));
|
||||||
|
@ -197,9 +202,8 @@ void DetailedGameListView::updateInfoPanel()
|
||||||
mPlayers.setValue(file->metadata.get("players"));
|
mPlayers.setValue(file->metadata.get("players"));
|
||||||
mLastPlayed.setValue(file->metadata.get("lastplayed"));
|
mLastPlayed.setValue(file->metadata.get("lastplayed"));
|
||||||
mPlayCount.setValue(file->metadata.get("playcount"));
|
mPlayCount.setValue(file->metadata.get("playcount"));
|
||||||
|
}
|
||||||
|
|
||||||
mDescription.setText(file->metadata.get("desc"));
|
|
||||||
mDescContainer.reset();
|
|
||||||
fadingOut = false;
|
fadingOut = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue