Disable file-open access when a file selection dialog pops up