Fix: closing of editor when text are modified
authorjhilmer
Mon, 01 Aug 2005 19:33:16 +0000
changeset 144f4bbdc809fec
parent 143 56c57552f1d2
child 145 0683c8e87fac
Fix: closing of editor when text are modified
texteditor.cpp
     1.1 --- a/texteditor.cpp	Mon Aug 01 19:32:45 2005 +0000
     1.2 +++ b/texteditor.cpp	Mon Aug 01 19:33:16 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()