[Kst] [Bug 118150] save sometimes does not default to save-as.

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


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=118150         
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2005-12-12 19:51 -------
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