summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kate/part/katedocument.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/kate/part/katedocument.cpp b/kate/part/katedocument.cpp
index 68374ebe1..c7b5a08b6 100644
--- a/kate/part/katedocument.cpp
+++ b/kate/part/katedocument.cpp
@@ -2409,6 +2409,10 @@ bool KateDocument::openFile(KIO::Job * job)
if ( fileTypeFound > -1 )
updateFileType( fileTypeFound );
+ // read dir config (if possible and wanted)
+ if (!m_reloading)
+ readDirConfig ();
+
// do we have success ?
bool success = m_buffer->openFile (m_file);
//
@@ -2435,9 +2439,6 @@ bool KateDocument::openFile(KIO::Job * job)
if ( fileTypeFound < 0 )
updateFileType (KateFactory::self()->fileTypeManager()->fileType (this));
- // read dir config (if possible and wanted)
- readDirConfig ();
-
// read vars
readVariables();