SerialTerminal: Apply line ending to current pane

Change-Id: Ib9365ace637d7e7c44347c7319315717a5f8b9b6
Reviewed-by: Benjamin Balga <balga.benjamin@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Benjamin Balga
2018-11-15 16:15:12 +02:00
committed by Orgad Shaneh
parent 4d74cbb945
commit b5a76be357

View File

@@ -643,6 +643,11 @@ void SerialOutputPane::defaultLineEndingChanged(int index)
return;
m_settings.setDefaultLineEndingIndex(index);
const int currentControlIndex = currentIndex();
if (currentControlIndex >= 0) {
m_serialControlTabs[currentControlIndex].lineEnd =
m_lineEndingsSelection->currentData().toByteArray();
}
qCDebug(log) << "Set default line ending to "
<< m_settings.defaultLineEndingText()