Skip to content

Commit

Permalink
[GUI] Silence TGFileDialog error messages
Browse files Browse the repository at this point in the history
Silence "Can't read file attributes" with protected system files on Windows
Address the following topic on the Forum:
[TGFileDialog multiple "Can't read file attributes" errors on Windows](https://root-forum.cern.ch/t/tgfiledialog-multiple-cant-read-file-attributes-errors-on-windows/58342)
  • Loading branch information
bellenot committed Mar 1, 2024
1 parent af8b8b4 commit 99cc14b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/gui/src/TGFSContainer.cxx
Expand Up @@ -813,7 +813,7 @@ TGFileItem *TGFileContainer::AddFile(const char *name, const TGPicture *ipic,
if (gSystem->GetPathInfo(name, sbuf)) {
if (sbuf.fIsLink) {
Info("AddFile", "Broken symlink of %s.", name);
} else {
} else if (errno != ENOENT) {
TString msg;
msg.Form("Can't read file attributes of \"%s\": %s.",
name, gSystem->GetError());
Expand Down

0 comments on commit 99cc14b

Please sign in to comment.