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

Andras Mantia amantia at kde.org
Wed Mar 10 16:59:13 GMT 2004


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

On Wednesday 10 March 2004 18:07, David Faure wrote:
> Yes, all this would be simpler if the new code was only activated for 'save
> as'. It would also allow us to keep the new var empty the rest of the time,
> saving some mem :)
>
> That would mean a new bool "d->m_duringSaveAs" or so (in the bitfield ->
> won't take any mem), using d->m_originalURL only in saveAs and the slots
> connected to it, and ensuring that bool is false all the time except during
> save as (simpler is to set to false again at the end of a save as,
> successful or not).

Yes, this is exactly what I thought, but decided to first try the other one, 
as this version needs a new boolean. So, here is the new patch.

Andras

>
> Thanks.

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAT0lhTQdfac6L/08RAtv0AKDYEXJYckBO2z43JvAo+4Xd7xBNpwCgxd5w
Sz9doohXn2HivqOa5n+EtrU=
=mgCb
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parts.diff
Type: text/x-diff
Size: 1998 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040310/7c45b53f/attachment.diff>


More information about the kde-core-devel mailing list