kopia lustrzana https://gitlab.com/eliggett/wfview
Log if write fails
rodzic
67685dc100
commit
18254cad10
|
@ -151,9 +151,13 @@ void cwSidetone::send(QString text)
|
|||
qint64 written = 0;
|
||||
while (written != -1 && written < buffer.size())
|
||||
{
|
||||
written += outputDevice->write(buffer.data()+written, buffer.size() - written);
|
||||
written += outputDevice->write(buffer.data() + written, buffer.size() - written);
|
||||
QApplication::processEvents();
|
||||
}
|
||||
if (written == -1)
|
||||
{
|
||||
qWarning(logCW()) << QString("Sidetone sending error occurred, aborting (%0 bytes of %1 remaining)").arg(buffer.size()-written).arg(buffer.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
//qInfo(logCW()) << "Sending" << this->currentChar;
|
||||
|
|
Ładowanie…
Reference in New Issue