texteditor.cpp
changeset 148 401f76b830d1
parent 142 3590c3490789
child 160 72cc3873306a
     1.1 --- a/texteditor.cpp	Sun Jul 31 12:24:53 2005 +0000
     1.2 +++ b/texteditor.cpp	Mon Aug 08 16:15:57 2005 +0000
     1.3 @@ -506,13 +506,10 @@
     1.4  
     1.5  void TextEditor::closeEvent( QCloseEvent* ce )
     1.6  {
     1.7 -    if ( !e->isModified() ) 
     1.8 -	{
     1.9 -		ce->accept();	// TextEditor can be reopened with show()
    1.10 -		actionViewToggleNoteEditor->setOn (false);
    1.11 -		showwithmain=false;
    1.12 -		return;
    1.13 -    }
    1.14 +    ce->accept();	// TextEditor can be reopened with show()
    1.15 +    actionViewToggleNoteEditor->setOn (false);
    1.16 +    showwithmain=false;
    1.17 +    return;
    1.18  }
    1.19  
    1.20  QString TextEditor::getText()