From 46ea832417485d0afb677cc33d8fc88efe5fce5f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 13 Mar 2010 03:28:36 +0000 Subject: Added patch discussed at http://reviewboard.kde.org/r/1915/ git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1102632 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/part/katedocument.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'kate') 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(); -- cgit v1.2.1