mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibGUI+Applications: Rename Model::is_valid to is_within_range
The previous name did not describe what the function checked, and was easy to confuse with ModelIndex::is_valid.
This commit is contained in:
@@ -295,8 +295,8 @@ void ColumnsView::move_cursor(CursorMovement movement, SelectionUpdate selection
|
||||
break;
|
||||
case CursorMovement::Right:
|
||||
new_index = model.index(0, m_model_column, cursor_index());
|
||||
if (model.is_valid(new_index)) {
|
||||
if (model.is_valid(cursor_index()))
|
||||
if (model.is_within_range(new_index)) {
|
||||
if (model.is_within_range(cursor_index()))
|
||||
push_column(cursor_index());
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user