Do not print a warning for the serialport closure if it is not open


This is necessary because end users will get a warning needlessly if the serial
port is not open when using the library.

There are two alternatives:

* Close in the destructor only if it is open.
* Do not print a warning.

The latter approach is more consistent with the other QIODevice subclasses, so
it is better to stick to that for now.

Change-Id: I918c203b1f5c52fba20de1373c298b8527a0e5a1
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
commit58a82feaff4fc10082a365a77ca0e286bbd138c2
parent50ab4d4a8ff5f882b9699cbde26ad9d8824a4824
authorLaszlo Papp <lpapp@kde.org>
committerThe Qt Project <gerrit-noreply@qt-project.org>
commit timeFri, 11 Oct 2013 14:54:41 +0200