Commit 02a5ed8f authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Alexander Akulich
Browse files

[lib] Insert chat text edit's history as plain text



Reviewed-by: Alexander Akulich's avatarAlexandr Akulich <akulichalexander@gmail.com>

REVIEW: 128842
parent 7e429544
......@@ -228,13 +228,13 @@ void ChatTextEdit::getHistory(bool up)
addHistory(toPlainText());
}
setText(QLatin1String(""));
setPlainText(QLatin1String(""));
} else {
m_historyPos--;
}
}
setText(m_history[m_historyPos]);
setPlainText(m_history[m_historyPos]);
moveCursor(QTextCursor::End, QTextCursor::MoveAnchor);
}
......@@ -375,7 +375,7 @@ void ChatTextEdit::completeNick()
}
// Set new text and cursor position
setText(newLine);
setPlainText(newLine);
cursor.setPosition(pos);
setTextCursor(cursor);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment