Commit d1833653 authored by Hadi Charara's avatar Hadi Charara
Browse files

Added check to see if README.md is readable

parent 67e3855b
Pipeline #66879 canceled with stage
......@@ -82,7 +82,12 @@ bool ReadmePanel::urlChanged()
{
m_readmeUrl.setUrl((url().toString().append("/README.md")));
QFileInfo check_file(m_readmeUrl.path());
if (!m_readmeUrl.isValid() || !check_file.exists() || !toggleViewAction->isChecked()) {
if (!m_readmeUrl.isValid()
|| !check_file.exists()
|| !check_file.isReadable()
|| !toggleViewAction->isChecked()) {
hide();
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment