changeset 179:6a57033ef207

The window title got lost on retranslation causing the currently opened file and modified state not being shown. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@383 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Tue, 05 Jun 2007 12:43:25 +0000
parents eae306792116
children d9cd572dafe2
files src/mainwindow.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/mainwindow.cpp	Tue Jun 05 10:27:20 2007 +0000
+++ b/src/mainwindow.cpp	Tue Jun 05 12:43:25 2007 +0000
@@ -78,7 +78,6 @@
     loadLastOpenedFile();
 
     updateSourceView();
-    txtedSourceCode->setModified(false);
 }
 
 
@@ -437,7 +436,7 @@
 
         savedSourceContent = openedSourceFileContent;
         txtedSourceCode->setModified( false );
-        setWindowModified( txtedSourceCode->isModified() );
+        setWindowModified( false );
     }
 }
 
@@ -1224,6 +1223,7 @@
 
         // Translate the main window.
         retranslateUi(this);
+        updateWindowTitle();
 
         // Translate the toolbar.
         toolBarWidget->retranslateUi(toolBar);