# HG changeset patch
# User jhilmer
# Date 1122924796 0
# Node ID f4bbdc809feca251cf85cc3323f15854605035b4
# Parent  56c57552f1d2429df3486f21877962e930233a0c
Fix: closing of editor when text are modified

diff -r 56c57552f1d2 -r f4bbdc809fec texteditor.cpp
--- a/texteditor.cpp	Mon Aug 01 19:32:45 2005 +0000
+++ b/texteditor.cpp	Mon Aug 01 19:33:16 2005 +0000
@@ -506,13 +506,10 @@
 
 void TextEditor::closeEvent( QCloseEvent* ce )
 {
-    if ( !e->isModified() ) 
-	{
-		ce->accept();	// TextEditor can be reopened with show()
-		actionViewToggleNoteEditor->setOn (false);
-		showwithmain=false;
-		return;
-    }
+    ce->accept();	// TextEditor can be reopened with show()
+    actionViewToggleNoteEditor->setOn (false);
+    showwithmain=false;
+    return;
 }
 
 QString TextEditor::getText()