Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hadi Charara
Dolphin
Commits
d1833653
Commit
d1833653
authored
Jun 20, 2021
by
Hadi Charara
Browse files
Added check to see if README.md is readable
parent
67e3855b
Pipeline
#66879
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/panels/readme/readmepanel.cpp
View file @
d1833653
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment