|
|
@ -2409,6 +2409,10 @@ bool KateDocument::openFile(KIO::Job * job)
|
|
|
|
if ( fileTypeFound > -1 )
|
|
|
|
if ( fileTypeFound > -1 )
|
|
|
|
updateFileType( fileTypeFound );
|
|
|
|
updateFileType( fileTypeFound );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// read dir config (if possible and wanted)
|
|
|
|
|
|
|
|
if (!m_reloading)
|
|
|
|
|
|
|
|
readDirConfig ();
|
|
|
|
|
|
|
|
|
|
|
|
// do we have success ?
|
|
|
|
// do we have success ?
|
|
|
|
bool success = m_buffer->openFile (m_file);
|
|
|
|
bool success = m_buffer->openFile (m_file);
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -2435,9 +2439,6 @@ bool KateDocument::openFile(KIO::Job * job)
|
|
|
|
if ( fileTypeFound < 0 )
|
|
|
|
if ( fileTypeFound < 0 )
|
|
|
|
updateFileType (KateFactory::self()->fileTypeManager()->fileType (this));
|
|
|
|
updateFileType (KateFactory::self()->fileTypeManager()->fileType (this));
|
|
|
|
|
|
|
|
|
|
|
|
// read dir config (if possible and wanted)
|
|
|
|
|
|
|
|
readDirConfig ();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// read vars
|
|
|
|
// read vars
|
|
|
|
readVariables();
|
|
|
|
readVariables();
|
|
|
|
|
|
|
|
|
|
|
|