[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Apr 28 21:38:41 UTC 2005
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();
More information about the umbrello-devel
mailing list