Changeset 10981 for trunk/FACT++/gui


Ignore:
Timestamp:
06/10/11 14:48:15 (13 years ago)
Author:
tbretz
Message:
Fixed sending a chat message.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/MainWindow.cc

    r10962 r10981  
    305305void MainWindow::on_fChatSend_clicked()
    306306{
    307     if (Dim::SendCommand("CHAT/MSG", fChatMessage->displayText().constData()))
     307    const string msg = fChatMessage->text().toStdString();
     308    if (Dim::SendCommand("CHAT/MSG", msg.c_str(), msg.length()+1))
    308309        fChatMessage->clear();
    309310}
Note: See TracChangeset for help on using the changeset viewer.