mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Qt: fix nullptr
This commit is contained in:
parent
0b24b09a06
commit
cd64990558
@ -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…
x
Reference in New Issue
Block a user