forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
4d74cbb945
commit
b5a76be357
@@ -643,6 +643,11 @@ void SerialOutputPane::defaultLineEndingChanged(int index)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
m_settings.setDefaultLineEndingIndex(index);
|
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 "
|
qCDebug(log) << "Set default line ending to "
|
||||||
<< m_settings.defaultLineEndingText()
|
<< m_settings.defaultLineEndingText()
|
||||||
|
Reference in New Issue
Block a user