[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Dec 12 19:51:22 CET 2005


SVN commit 487974 by arwalker:

BUG:118150 Set the title and modified flag correctly

 M  +1 -1      kst.cpp  
 M  +1 -0      kstdoc.cpp  
 M  +1 -1      main.cpp  


--- trunk/extragear/graphics/kst/kst/kst.cpp #487973:487974
@@ -1160,7 +1160,7 @@
 
 
 void KstApp::slotFileSave() {
-  if (doc->title() == "Untitled") {
+  if (doc->title() == i18n("Untitled")) {
     slotFileSaveAs();
   } else {
     slotUpdateStatusMsg(i18n("Saving file..."));
--- trunk/extragear/graphics/kst/kst/kstdoc.cpp #487973:487974
@@ -73,6 +73,7 @@
   _updating = false;
   _stopping = false;
   _nextEventPaint = false;
+  _title = i18n("Untitled");
 }
 
 KstDoc::~KstDoc() {
--- trunk/extragear/graphics/kst/kst/main.cpp #487973:487974
@@ -795,7 +795,7 @@
     } else {
       args->clear();
       kst->updateDialogs();
-      kst->document()->setModified(false);
+      
       if (showQuickStart) {
         kst->showQuickStartDialog();
       }


More information about the Kst mailing list