mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
qt: fix grid
This commit is contained in:
parent
461148c227
commit
1bc504f863
@ -43,12 +43,17 @@ void GameGridFrame::onCurrentCellChanged(int currentRow, int currentColumn, int
|
||||
columnCnt = this->columnCount();
|
||||
|
||||
auto itemID = (crtRow * columnCnt) + currentColumn;
|
||||
static QString originalStyle = this->styleSheet();
|
||||
if (itemID > m_game_info->m_games.count() - 1) {
|
||||
cellClicked = false;
|
||||
validCellSelected = false;
|
||||
BackgroundMusicPlayer::getInstance().stopMusic();
|
||||
this->setStyleSheet(originalStyle +
|
||||
"QTableWidget {outline: auto;}"
|
||||
"QTableWidget::item:selected {background-color: transparent;}");
|
||||
return;
|
||||
}
|
||||
this->setStyleSheet(originalStyle);
|
||||
cellClicked = true;
|
||||
validCellSelected = true;
|
||||
SetGridBackgroundImage(crtRow, crtColumn);
|
||||
|
Loading…
Reference in New Issue
Block a user