[PATCH] KParts::ReadWritePart::saveAs - part 3

Andras Mantia amantia at kde.org
Wed Mar 10 15:21:12 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In order to complete my work on the KParts, here is another patch, which makes
the url restoring on save failure working also in case of saving to remote
files. The patch is not so trivial as it seems (care must be taken where we
update the m_originalURL to the current m_url), so please review it.
My only concern is what if openURL is reimplemented, so d->m_originalURL 
remains empty and if save fails, the m_url will become empty. 
  I've tried this with the Kate part where I see that openURL is reimplemented 
and it worked fine, still I'm cautious. Another solution might be to make a 
difference in saveToURL and slotUploadFinished and restore the m_url on error 
only if the saveToURL was called due to a saveAs call.

Andras

- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFATzJoTQdfac6L/08RAnl5AKCmWLQ6+aa1DJpa43fZFlUq1rY0OQCfW3KH
sw2VZ7B6A6zoHjDv5lGVzkw=
=TM9E
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parts.diff
Type: text/x-diff
Size: 1744 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040310/42e5fe73/attachment.diff>


More information about the kde-core-devel mailing list