texteditor.cpp
changeset 427 fb74fa7bfb4c
parent 404 53efc2562a7d
child 442 dfbc371b7280
     1.1 --- a/texteditor.cpp	Mon Feb 12 09:28:46 2007 +0000
     1.2 +++ b/texteditor.cpp	Mon Feb 12 09:28:47 2007 +0000
     1.3 @@ -52,6 +52,7 @@
     1.4  	setupSettingsActions();
     1.5  	
     1.6  	// Various states
     1.7 +	blockChangedSignal=false;
     1.8  	setInactive();
     1.9  
    1.10  	// Load Settings
    1.11 @@ -523,15 +524,17 @@
    1.12  		else
    1.13  			setState (filledEditor);
    1.14  	// SLOT is LinkableMapObj, which will update systemFlag
    1.15 -	emit (textHasChanged() );
    1.16 +	if (!blockChangedSignal) emit (textHasChanged() );
    1.17  }
    1.18  
    1.19  
    1.20  void TextEditor::setText(QString t)
    1.21  {
    1.22 +	blockChangedSignal=true;
    1.23  	e->setReadOnly(false);
    1.24  	e->setText(t);
    1.25  	enableActions();
    1.26 +	blockChangedSignal=false;
    1.27  }
    1.28  
    1.29  void TextEditor::setInactive()