diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-03-05 18:03:49 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-03-05 18:03:49 +0100 |
commit | e477c0c2c5a10d72fbb0e1f154db2359e6dbaaff (patch) | |
tree | 5f3db64786a75b66003abbbf21e6ec114bb7ba1e | |
parent | acc41524f17267448738644edd88b1664056bb34 (diff) |
Fucking standard library c++ exception
m--------- | depends/mglpp | 0 | ||||
-rw-r--r-- | src/plugins/FileManager.cpp | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/depends/mglpp b/depends/mglpp -Subproject 8fa216c7639276c57e544a2ec2bf5ed2458a7d5 +Subproject 3f07fa13a3e93eea87e2a885fa24ae6ea0aeb88 diff --git a/src/plugins/FileManager.cpp b/src/plugins/FileManager.cpp index c731ec2..7508776 100644 --- a/src/plugins/FileManager.cpp +++ b/src/plugins/FileManager.cpp @@ -37,14 +37,16 @@ namespace QuickMedia { else new_path = current_dir / args.url; - if(std::filesystem::is_regular_file(new_path)) { + std::error_code regular_file_err; + if(std::filesystem::is_regular_file(new_path, regular_file_err)) { program->select_file(new_path); if(selection_handler) result_tabs = selection_handler(this, new_path); return PluginResult::OK; } - if(!std::filesystem::is_directory(new_path)) + std::error_code is_dir_err; + if(!std::filesystem::is_directory(new_path, is_dir_err)) return PluginResult::ERR; current_dir = std::move(new_path); |