mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
HackStudio: tree_view on_activiation changes
When opening a file in the tree view with _double click_, the file name was not the same as opening the same file with _right click > Open_. This caused the opne_files_view to have the same file in it, but with two different names.
This commit is contained in:
parent
e3ec759f97
commit
a8dfba6348
Notes:
sideshowbarker
2024-07-18 22:37:11 +09:00
Author: https://github.com/masozzi Commit: https://github.com/SerenityOS/serenity/commit/a8dfba6348a Pull-request: https://github.com/SerenityOS/serenity/pull/5219
1 changed files with 1 additions and 1 deletions
|
@ -672,7 +672,7 @@ void HackStudioWidget::create_project_tree_view(GUI::Widget& parent)
|
|||
};
|
||||
|
||||
m_project_tree_view->on_activation = [this](auto& index) {
|
||||
auto filename = index.data(GUI::ModelRole::Custom).to_string();
|
||||
auto filename = index.data().as_string();
|
||||
open_file(filename);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue