mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Qt: fix nullptr
This commit is contained in:
parent
0b24b09a06
commit
cd64990558
1 changed files with 2 additions and 2 deletions
|
@ -804,12 +804,12 @@ void game_list_frame::itemSelectionChangedSlot()
|
||||||
|
|
||||||
if (m_is_list_layout)
|
if (m_is_list_layout)
|
||||||
{
|
{
|
||||||
if (const auto item = m_game_list->item(m_game_list->currentRow(), gui::column_icon); item->isSelected())
|
if (const auto item = m_game_list->item(m_game_list->currentRow(), gui::column_icon); item && item->isSelected())
|
||||||
{
|
{
|
||||||
game = GetGameInfoByMode(item);
|
game = GetGameInfoByMode(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (const auto item = m_game_grid->currentItem(); item->isSelected())
|
else if (const auto item = m_game_grid->currentItem(); item && item->isSelected())
|
||||||
{
|
{
|
||||||
game = GetGameInfoByMode(item);
|
game = GetGameInfoByMode(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue