diff --git a/src/chatdlg.cpp b/src/chatdlg.cpp index eb95ce2b..a952b614 100755 --- a/src/chatdlg.cpp +++ b/src/chatdlg.cpp @@ -94,6 +94,11 @@ void CChatDlg::AddChatText ( QString strChatText ) txvChatWindow->append ( strChatText ); // notify accessibility plugin that text has changed - QAccessible::updateAccessibility ( txvChatWindow, 0, - QAccessible::ValueChanged ); + QAccessible::updateAccessibility ( +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + txvChatWindow, 0, QAccessible::ValueChanged +#else + new QAccessibleEvent ( txvChatWindow, QAccessible::ValueChanged ) +#endif + ); } diff --git a/src/protocol.cpp b/src/protocol.cpp index f820481c..22702a13 100755 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -1788,6 +1788,6 @@ void CProtocol::PutStringOnStream ( CVector& vecIn, { // byte-by-byte copying of the string data PutValOnStream ( vecIn, iPos, - static_cast ( sString[j].toAscii() ), 1 ); + static_cast ( sString[j].toLatin1() ), 1 ); } }