texteditor.cpp
changeset 428 9ae68208e2ff
parent 404 53efc2562a7d
child 442 dfbc371b7280
     1.1 --- a/texteditor.cpp	Mon Nov 20 12:12:02 2006 +0000
     1.2 +++ b/texteditor.cpp	Mon Feb 19 12:01:52 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()