[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    [Bug 130775] Window title not updated with new file name after "Save
From:       Thomas Zander <zander () kde ! org>
Date:       2006-07-17 8:47:26
Message-ID: 20060717084726.19156.qmail () ktown ! kde ! org
[Download RAW message or body]

------- 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=130775         
zander kde org changed:

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



------- Additional Comments From zander kde org  2006-07-17 10:47 -------
SVN commit 563304 by zander:

BUG: 130775
Fix the window title to be updated properly. Especially funny is
addition of a 'not' in the if(silent) ;)


 M  +4 -2      KoMainWindow.cpp  


--- branches/koffice/1.6/koffice/lib/kofficecore/KoMainWindow.cpp #563303:563304
 @ -921,10 +921,10  @
 
                 if (silent) // don't let the document change the window caption
                   pDoc->setTitleModified();
-            }   // if (wantToSave)  {
+            }   // if (wantToSave)
             else
                 ret = false;
-        }   // if (bOk) {
+        }   // if (bOk)
         else
             ret = false;
     }
 @ -968,6 +968,8  @
 
     if (!ret && reset_url)
         pDoc->resetURL(); //clean the suggested filename as the save dialog was rejected
+    else if (! silent) // don't let the document change the window caption
+        pDoc->setTitleModified();
     return ret;
 }
____________________________________
koffice mailing list
koffice@kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic