forked from qt-creator/qt-creator
Remove unnecessary code.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user