GUI: Fix crash when clicking on item in grid widget
The tray position was not correctly computed and it was most of the
time trying to display it way outside the window (it was using X
instead of Y in one place for the vertical position).
This was a recent regression from a6bc1d587
(GUI: Fixed grid view
for long games list).
This commit is contained in:
parent
d3ae365f18
commit
7e69686855
1 changed files with 1 additions and 1 deletions
|
@ -877,7 +877,7 @@ void GridWidget::openTray(int x, int y, int entryId) {
|
|||
|
||||
void GridWidget::openTrayAtSelected() {
|
||||
if (_selectedEntry) {
|
||||
GridItemTray *tray = new GridItemTray(this, _x + _selectedEntry->x - _gridXSpacing / 3, _y + _selectedEntry->x + _selectedEntry->h - _scrollPos,
|
||||
GridItemTray *tray = new GridItemTray(this, _x + _selectedEntry->x - _gridXSpacing / 3, _y + _selectedEntry->y + _selectedEntry->h - _scrollPos,
|
||||
_gridItemWidth + 2 * (_gridXSpacing / 3), _trayHeight, _selectedEntry->entryID, this);
|
||||
tray->runModal();
|
||||
delete tray;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue