Qt: Relax game_list deselection checks
This commit is contained in:
@@ -117,7 +117,8 @@ void game_list::fix_narrow_columns()
|
|||||||
|
|
||||||
void game_list::mousePressEvent(QMouseEvent* event)
|
void game_list::mousePressEvent(QMouseEvent* event)
|
||||||
{
|
{
|
||||||
if (QTableWidgetItem* item = itemAt(event->pos()); !item || !item->data(Qt::UserRole).isValid())
|
// Handle deselction when clicking on empty space in the table
|
||||||
|
if (!itemAt(event->pos()))
|
||||||
{
|
{
|
||||||
clearSelection();
|
clearSelection();
|
||||||
setCurrentItem(nullptr); // Needed for currentItemChanged
|
setCurrentItem(nullptr); // Needed for currentItemChanged
|
||||||
|
|||||||
Reference in New Issue
Block a user