mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibGUI: Rename SortingProxyModel "target" to "source" instead
This commit is contained in:
parent
db6a4f2954
commit
82e949aa7c
Notes:
sideshowbarker
2024-07-19 03:40:26 +09:00
Author: https://github.com/awesomekling
Commit: 82e949aa7c
4 changed files with 36 additions and 35 deletions
|
@ -208,7 +208,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, Options options, const
|
|||
m_view->on_selection_change = [this] {
|
||||
auto index = m_view->selection().first();
|
||||
auto& filter_model = (SortingProxyModel&)*m_view->model();
|
||||
auto local_index = filter_model.map_to_target(index);
|
||||
auto local_index = filter_model.map_to_source(index);
|
||||
const FileSystemModel::Node& node = m_model->node(local_index);
|
||||
LexicalPath path { node.full_path(m_model) };
|
||||
|
||||
|
@ -246,7 +246,7 @@ FilePicker::FilePicker(Window* parent_window, Mode mode, Options options, const
|
|||
|
||||
m_view->on_activation = [this](auto& index) {
|
||||
auto& filter_model = (SortingProxyModel&)*m_view->model();
|
||||
auto local_index = filter_model.map_to_target(index);
|
||||
auto local_index = filter_model.map_to_source(index);
|
||||
const FileSystemModel::Node& node = m_model->node(local_index);
|
||||
auto path = node.full_path(m_model);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue