diff options
author | Liang Qi <liang.qi@theqtcompany.com> | 2016-03-07 19:32:54 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@theqtcompany.com> | 2016-03-07 19:32:54 +0100 |
commit | f8449352c9af0ee8055c6a85981e092e9d109b9d (patch) | |
tree | 458d4f44ce94b764b773cacfc200329c0cb988d5 /src/serialport/qserialport.cpp | |
parent | 5bee9d9f0f8cf5415ad9337aed88bccac3c15ce1 (diff) | |
parent | a2467f9ec2d09d6d665d169e0fb450169f921b12 (diff) | |
download | qtserialport-f8449352c9af0ee8055c6a85981e092e9d109b9d.tar.gz |
Merge remote-tracking branch 'origin/5.6' into 5.7
Change-Id: I35f19a7d266f90e957bfe01534a40c4d98b40b34
Diffstat (limited to 'src/serialport/qserialport.cpp')
-rw-r--r-- | src/serialport/qserialport.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/serialport/qserialport.cpp b/src/serialport/qserialport.cpp index 22dcfd2..3d11b31 100644 --- a/src/serialport/qserialport.cpp +++ b/src/serialport/qserialport.cpp @@ -961,6 +961,11 @@ bool QSerialPort::setRequestToSend(bool set) return false; } + if (d->flowControl == QSerialPort::HardwareControl) { + d->setError(QSerialPortErrorInfo(QSerialPort::UnsupportedOperationError)); + return false; + } + const bool requestToSend = isRequestToSend(); const bool retval = d->setRequestToSend(set); if (retval && (requestToSend != set)) |