Commit 391ca9d5 authored by Hadi Charara's avatar Hadi Charara
Browse files

Fixed bug when changing folders and going back

parent b3df7c60
Pipeline #66661 passed with stage
in 5 minutes and 22 seconds
......@@ -53,11 +53,11 @@ void ReadmePanel::hideEvent(QHideEvent* event) {
bool ReadmePanel::urlChanged()
{
m_readmeUrl = QUrl(url().toString().append("/README.md"));
m_readmeUrl.setUrl((url().toString().append("/README.md")));
QFileInfo check_file(m_readmeUrl.path());
if (!m_readmeUrl.isValid() || !check_file.exists()) {
this->parentWidget()->hide();
return false;
return true;
}
this->parentWidget()->show();
m_markdownPart->openUrl(m_readmeUrl);
......
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