Skip to content
Snippets Groups Projects
Commit 01cc5b48 authored by con's avatar con
Browse files

Remove unnecessary code.

parent 9b8d1481
No related branches found
No related tags found
No related merge requests found
...@@ -135,11 +135,7 @@ bool BaseTextDocument::isReadOnly() const ...@@ -135,11 +135,7 @@ bool BaseTextDocument::isReadOnly() const
return true; return true;
if (m_fileName.isEmpty()) //have no corresponding file, so editing is ok if (m_fileName.isEmpty()) //have no corresponding file, so editing is ok
return false; return false;
const QFileInfo fi(m_fileName);
return m_fileIsReadOnly; return m_fileIsReadOnly;
} }
bool BaseTextDocument::isModified() const bool BaseTextDocument::isModified() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment