--nextPart5864256.dtRnVA9fWe Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 30 March 2005 17:30, Oswald Buddenhagen wrote: > On Wed, Mar 30, 2005 at 04:58:10PM +0100, Jaroslaw Staniek wrote: > > +++ ksavefile.cpp 30 Mar 2005 14:53:05 -0000 > > @@ -99,8 +99,17 @@ > > void > > KSaveFile::abort() > > { > > +#ifdef Q_WS_WIN > > + //for win32: close before unlinking > > + QString tmpName( mTempFile.name() ); > > +#else > > mTempFile.unlink(); > > +#endif > > mTempFile.close(); > > +#ifdef Q_WS_WIN > > + if (!tmpName.isEmpty()) > > + QFile::remove( tmpName ); > > +#endif > > } > > i think in this case the order is not relevant, so just close it before > unlinking unconditionally, i'd say. waldo? I agree. Cheers, Waldo --nextPart5864256.dtRnVA9fWe Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBCStPsN4pvrENfboIRAq/NAJ4+FrPH3UhXBYM+1pNHcDli+GA59ACeNiW7 BY0nRW1LUX/PFmMPqycfZD8= =IT9V -----END PGP SIGNATURE----- --nextPart5864256.dtRnVA9fWe--