mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
parent
0f7bba327f
commit
040848a2af
Notes:
sideshowbarker
2024-07-19 04:25:59 +09:00
Author: https://github.com/tlmrgvf Commit: https://github.com/SerenityOS/serenity/commit/040848a2afd Pull-request: https://github.com/SerenityOS/serenity/pull/2935 Issue: https://github.com/SerenityOS/serenity/issues/2932
2 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,7 @@ PropertiesDialog::PropertiesDialog(GUI::FileSystemModel& model, String path, boo
|
|||
|
||||
m_name = lexical_path.basename();
|
||||
m_path = lexical_path.string();
|
||||
m_parent_path = lexical_path.dirname();
|
||||
|
||||
m_name_box = file_container.add<GUI::TextBox>();
|
||||
m_name_box->set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fixed);
|
||||
|
@ -188,7 +189,7 @@ void PropertiesDialog::permission_changed(mode_t mask, bool set)
|
|||
|
||||
String PropertiesDialog::make_full_path(String name)
|
||||
{
|
||||
return String::format("%s/%s", m_model.root_path().characters(), name.characters());
|
||||
return String::format("%s/%s", m_parent_path.characters(), name.characters());
|
||||
}
|
||||
|
||||
bool PropertiesDialog::apply_changes()
|
||||
|
|
|
@ -89,6 +89,7 @@ private:
|
|||
RefPtr<GUI::TextBox> m_name_box;
|
||||
RefPtr<GUI::ImageWidget> m_icon;
|
||||
String m_name;
|
||||
String m_parent_path;
|
||||
String m_path;
|
||||
mode_t m_mode;
|
||||
mode_t m_old_mode;
|
||||
|
|
Loading…
Reference in a new issue