mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
FileManager: Remove unused lstat() call
This commit is contained in:
parent
61dc489778
commit
39c0f31009
|
@ -1076,12 +1076,6 @@ ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const&
|
|||
}
|
||||
}
|
||||
|
||||
struct stat st;
|
||||
if (lstat(new_path.characters(), &st)) {
|
||||
perror("stat");
|
||||
return;
|
||||
}
|
||||
|
||||
mkdir_action->set_enabled(can_write_in_path);
|
||||
touch_action->set_enabled(can_write_in_path);
|
||||
paste_action->set_enabled(can_write_in_path && GUI::Clipboard::the().fetch_mime_type() == "text/uri-list");
|
||||
|
|
Loading…
Reference in a new issue