diff options
Diffstat (limited to 'pica-client')
| -rw-r--r-- | pica-client/chatwindow.cpp | 6 | ||||
| -rw-r--r-- | pica-client/picaactioncenter.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pica-client/chatwindow.cpp b/pica-client/chatwindow.cpp index dd495ae..7273c08 100644 --- a/pica-client/chatwindow.cpp +++ b/pica-client/chatwindow.cpp @@ -47,12 +47,11 @@ void ChatWindow::put_message(QString msg, quint32 id, bool is_me) color = "#ff0000"; QTextCursor c(chatw->document()); - c.movePosition(QTextCursor::End, QTextCursor::MoveAnchor); - if (is_me) undelivered_msgs.append(c.position()); + chatw->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); fmt = chatw->currentCharFormat(); chatw->insertHtml( QString("<b><font color=%1> (%2) %3 : </font></b>"). @@ -63,7 +62,7 @@ void ChatWindow::put_message(QString msg, quint32 id, bool is_me) chatw->setCurrentCharFormat(fmt); chatw->insertPlainText(msg + '\n'); - chatw->moveCursor(QTextCursor::End, QTextCursor::KeepAnchor); + chatw->moveCursor(QTextCursor::End, QTextCursor::MoveAnchor); } void ChatWindow::msg_from_peer(QString msg) @@ -138,3 +137,4 @@ void TextSend::keyPressEvent(QKeyEvent *e) + diff --git a/pica-client/picaactioncenter.cpp b/pica-client/picaactioncenter.cpp index 585a70c..8bedb0f 100644 --- a/pica-client/picaactioncenter.cpp +++ b/pica-client/picaactioncenter.cpp @@ -28,7 +28,7 @@ void PicaActionCenter::about() QMessageBox mbx; mbx.setWindowIcon(picapica_ico_sit); mbx.setIconPixmap(picapica_ico_sit.pixmap(32)); - mbx.setText(tr("Pica Pica Messenger "VERSION_STRING"\n(c) 2012 Anton Sviridenko\n http://picapica.im")); + mbx.setText(tr("Pica Pica Messenger "VERSION_STRING"\n(c) 2012 Anton Sviridenko\n http://picapica.im\n\n\Contributors:\nDaniil Ustinov - bugfixes")); mbx.exec(); } |
