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

List:       kde-commits
Subject:    kdesdk/umbrello/umbrello
From:       Oliver Kellogg <okellogg () users ! sourceforge ! net>
Date:       2005-04-29 4:36:16
Message-ID: 20050429043616.B15AA629 () office ! kde ! org
[Download RAW message or body]

CVS commit by okellogg: 

saveDocument(): Patch by Albert Astals Cid uses new kdelibs method
KTar::closeSucceeded() for properly handling file writing problems.


  M +7 -0      umldoc.cpp   1.249


--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.248:1.249
@@ -604,4 +604,11 @@ bool UMLDoc::saveDocument(const KURL& ur
                 archive->close();
 
+#if KDE_IS_VERSION(3,4,89)
+                if (!archive->closeSucceeded())
+                {
+                        KMessageBox::error(0, i18n("There was a problem saving file: \
%1").arg(d.path()), i18n("Save Error")); +                        return false;
+                }
+#endif
                 // now the xmi file was added to the archive, so we can delete it
                 tmp_xmi_file.close();


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

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