diff -r e62bede823c3 libyzis/buffer.cpp
--- a/libyzis/buffer.cpp	Sat Jan 10 20:18:13 2009 +0100
+++ b/libyzis/buffer.cpp	Tue Jan 13 03:40:52 2009 +0100
@@ -550,6 +550,7 @@
 
     //stop redraws
     d->enableUpdateView = false;
+    d->isLoading = true;
 
 	clearText();
 
@@ -562,7 +563,6 @@
 
     //opens and eventually create the file
     d->undoBuffer->setInsideUndo( true );
-    d->isLoading = true;
     d->currentEncoding = getLocalStringOption( "encoding" );
     if ( QFile::exists(d->path) && fl.open( QIODevice::ReadOnly ) ) {
         QTextCodec* codec;
