forked from qt-creator/qt-creator
Make IFile::isReadOnly consistent.
It is supposed to refer to the property of the file on disk (if there is any). Task-number: QTCREATORBUG-4998 Change-Id: Iaed62c17d124b364aecec4d1f910046bade42d40 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -137,14 +137,6 @@ bool FormWindowFile::isModified() const
|
||||
return m_formWindow && m_formWindow->isDirty();
|
||||
}
|
||||
|
||||
bool FormWindowFile::isReadOnly() const
|
||||
{
|
||||
if (m_fileName.isEmpty())
|
||||
return false;
|
||||
const QFileInfo fi(m_fileName);
|
||||
return !fi.isWritable();
|
||||
}
|
||||
|
||||
bool FormWindowFile::isSaveAsAllowed() const
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user