--- a/src/versit/qversitwriter.cpp Fri Sep 17 08:34:34 2010 +0300
+++ b/src/versit/qversitwriter.cpp Mon Oct 04 01:37:06 2010 +0300
@@ -54,6 +54,7 @@
\class QVersitWriter
\brief The QVersitWriter class writes Versit documents such as vCards to a device.
\ingroup versit
+ \inmodule QtVersit
QVersitWriter converts a QVersitDocument into its textual representation.
QVersitWriter supports writing to an abstract I/O device
@@ -228,6 +229,8 @@
/*!
* If the state is ActiveState, blocks until the writer has finished writing or \a msec milliseconds
* has elapsed, returning true if it successfully finishes or is cancelled by the user.
+ * If \m msec is negative or zero, the function blocks until the writer has finished, regardless of
+ * how long it takes.
* If the state is FinishedState, returns true immediately.
* Otherwise, returns false immediately.
*/
@@ -235,7 +238,10 @@
{
State state = d->state();
if (state == ActiveState) {
- return d->wait(msec);
+ if (msec <= 0)
+ return d->wait(ULONG_MAX);
+ else
+ return d->wait(msec);
} else if (state == FinishedState) {
return true;
} else {