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

List:       kde-bugs-dist
Subject:    [Bug 105879] closing with embedded doc asks save/discard twice
From:       Fredrik Edemar <f_edemar () linux ! se>
Date:       2005-05-20 23:22:03
Message-ID: 20050520232203.3897.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=105879         
f_edemar linux se changed:

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



------- Additional Comments From f_edemar linux se  2005-05-21 01:22 -------
SVN commit 416268 by fedemar:

Simplify the closing: just call close() :) This avoids queryClose() to be called \
twice which causes problems with KoDocument::isModified() together with embedded \
parts.

BUG: 105879 (closing with embedded doc asks save/discard twice)


 M  +1 -3      trunk/koffice/lib/kofficecore/koMainWindow.cc  


--- trunk/koffice/lib/kofficecore/koMainWindow.cc #416267:416268
 @ -1135,9 +1135,7  @
 
 void KoMainWindow::slotFileQuit()
 {
-    if (queryClose()) {
-        close(); // queryClose will also be called in this method but won't do \
                anything because isModified==false.
-    }
+    close();
 }
 
 void KoMainWindow::print(bool quick) {


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

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