mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 13:05:09 +00:00
LibGUI: Unbreak clearing GTableView selection by clicking outside items.
Also, clicking on the column headers should not clear selection.
This commit is contained in:
parent
ef4d517429
commit
f91a20f9d0
2 changed files with 6 additions and 5 deletions
|
@ -54,11 +54,7 @@ public:
|
|||
return index.row() >= 0 && index.row() < row_count() && index.column() >= 0 && index.column() < column_count();
|
||||
}
|
||||
|
||||
void set_selected_index(const GModelIndex& index)
|
||||
{
|
||||
if (is_valid(index))
|
||||
m_selected_index = index;
|
||||
}
|
||||
void set_selected_index(const GModelIndex& index) { m_selected_index = index; }
|
||||
GModelIndex selected_index() const { return m_selected_index; }
|
||||
|
||||
void register_view(Badge<GTableView>, GTableView&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue