diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp index 24d35c7bc..85b687213 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.cpp +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.cpp @@ -293,6 +293,7 @@ void PopupChatDialog::setColor() colorChanged(currentColor); } ui.chattextEdit->setFocus(); + QTextCursor cursor = ui.chattextEdit->textCursor(); } void PopupChatDialog::colorChanged(const QColor &c) @@ -302,15 +303,6 @@ void PopupChatDialog::colorChanged(const QColor &c) ui.colorButton->setIcon(pix); } -void PopupChatDialog::mergeFormatOnWordOrSelection(const QTextCharFormat &format) -{ - //QTextCursor cursor = ui.chattextEdit->textCursor(); - /*if (!cursor.hasSelection()) - cursor.select(QTextCursor::WordUnderCursor); - cursor.mergeCharFormat(format);*/ - //ui.chattextEdit->mergeCurrentCharFormat(format); -} - void PopupChatDialog::getFont() { bool ok; diff --git a/retroshare-gui/src/gui/chat/PopupChatDialog.h b/retroshare-gui/src/gui/chat/PopupChatDialog.h index 195a259df..bd25c2be3 100644 --- a/retroshare-gui/src/gui/chat/PopupChatDialog.h +++ b/retroshare-gui/src/gui/chat/PopupChatDialog.h @@ -80,7 +80,6 @@ private slots: private: - void mergeFormatOnWordOrSelection(const QTextCharFormat &format); void colorChanged(const QColor &c); QAction *actionTextBold;