Notified file transmission interrupted #4745

This commit is contained in:
Jerry (Xinyu Hou) 2015-06-04 14:43:49 -07:00
parent 646e1b52eb
commit eb3f8aee2a
2 changed files with 7 additions and 1 deletions

View File

@ -472,7 +472,8 @@ void MainWindow::checkTransmission(const QString& line)
setSynergyState(synergyTransfering); setSynergyState(synergyTransfering);
} }
else if (line.contains("Failed") || else if (line.contains("Failed") ||
line.contains("Complete")) { line.contains("Complete") ||
line.contains("Interrupted")) {
setSynergyState(synergyConnected); setSynergyState(synergyConnected);
} }

View File

@ -282,6 +282,11 @@ Client::leave()
&Client::sendClipboardThread, &Client::sendClipboardThread,
NULL)); NULL));
if (!m_receivedFileData.empty()) {
m_receivedFileData.clear();
LOG((CLOG_NOTIFY "File Transmission Interrupted: The previous file transmission is interrupted."));
}
return true; return true;
} }