Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
4160 | } | 4160 | } | ||
4161 | 4161 | | |||
4162 | void KTextEditor::DocumentPrivate::slotModifiedOnDisk(KTextEditor::View * /*v*/) | 4162 | void KTextEditor::DocumentPrivate::slotModifiedOnDisk(KTextEditor::View * /*v*/) | ||
4163 | { | 4163 | { | ||
4164 | if (url().isEmpty() || !m_modOnHd) { | 4164 | if (url().isEmpty() || !m_modOnHd) { | ||
4165 | return; | 4165 | return; | ||
4166 | } | 4166 | } | ||
4167 | 4167 | | |||
4168 | if (!isModified() && !isReadWrite()) { | ||||
4169 | onModOnHdReload(); | ||||
4170 | return; | ||||
4171 | } | ||||
4172 | | ||||
4168 | if (!m_fileChangedDialogsActivated || m_modOnHdHandler) { | 4173 | if (!m_fileChangedDialogsActivated || m_modOnHdHandler) { | ||
4169 | return; | 4174 | return; | ||
4170 | } | 4175 | } | ||
4171 | 4176 | | |||
4172 | // don't ask the user again and again the same thing | 4177 | // don't ask the user again and again the same thing | ||
4173 | if (m_modOnHdReason == m_prevModOnHdReason) { | 4178 | if (m_modOnHdReason == m_prevModOnHdReason) { | ||
4174 | return; | 4179 | return; | ||
4175 | } | 4180 | } | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |