branchobj.cpp
changeset 126 1ad2d5c80848
parent 103 c810a11d11d9
child 129 9b9c7e8b9147
     1.1 --- a/branchobj.cpp	Mon May 23 15:28:20 2005 +0000
     1.2 +++ b/branchobj.cpp	Tue Jul 12 12:02:55 2005 +0000
     1.3 @@ -1293,7 +1293,11 @@
     1.4  
     1.5  	// set Text in Editor	
     1.6  	textEditor->setText(note.getNote() );
     1.7 -	textEditor->setFilename(note.getFilenameHint() );
     1.8 +	QString fnh=note.getFilenameHint();
     1.9 +	if (fnh!="")
    1.10 +		textEditor->setFilenameHint(note.getFilenameHint() );
    1.11 +	else	
    1.12 +		textEditor->setFilenameHint(getHeading() );
    1.13  	textEditor->setFontHint (note.getFontHint() );
    1.14  	connect (textEditor, SIGNAL (textHasChanged() ), this, SLOT (updateNoteFlag() ) ); 
    1.15  	connect (textEditor, SIGNAL (fontSizeHasChanged() ), this, SLOT (updateNoteFlag() ) );