diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-02-14 12:10:29 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-02-14 12:58:11 +0100 |
commit | f916d38dce14ac69dcb0b2338b94d91155d77892 (patch) | |
tree | e575ad1dfe68c976552593d74b0d536b5cc801a0 /src/plugins/bineditor | |
parent | d7b0ceac8a3959a6b055961cf915c9b697c31d46 (diff) | |
download | qt-creator-f916d38dce14ac69dcb0b2338b94d91155d77892.tar.gz |
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>
Diffstat (limited to 'src/plugins/bineditor')
-rw-r--r-- | src/plugins/bineditor/bineditorplugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/bineditor/bineditorplugin.cpp b/src/plugins/bineditor/bineditorplugin.cpp index 1625af74b6..b646a0da99 100644 --- a/src/plugins/bineditor/bineditorplugin.cpp +++ b/src/plugins/bineditor/bineditorplugin.cpp @@ -297,7 +297,7 @@ public: bool isModified() const { return m_editor->isMemoryView() ? false : m_editor->isModified(); } bool isReadOnly() const { - if (m_editor->isMemoryView()) + if (m_editor->isMemoryView() || m_fileName.isEmpty()) return false; const QFileInfo fi(m_fileName); return !fi.isWritable(); |