X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=8cc87e417bad358f562765cb78a71bdc9055eb1d;hp=e7ddd7f14a537217df86f9a7941fd8812f304013;hb=08aac67d4dc813ed541a81d06fb83d9c4fec5834;hpb=4295cdd849be0ae914387d0f62afb6f653f5f27f diff --git a/src/client/client.cpp b/src/client/client.cpp index e7ddd7f1..8cc87e41 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -150,9 +150,6 @@ Buffer *Client::buffer(BufferInfo id) { if(!buff) { Client *client = Client::instance(); buff = new Buffer(id, client); - - connect(buff, SIGNAL(userInput(BufferInfo, QString)), - client, SLOT(userInput(BufferInfo, QString))); connect(buff, SIGNAL(destroyed()), client, SLOT(bufferDestroyed())); client->_buffers[id.uid()] = buff; @@ -243,13 +240,8 @@ void Client::coreIdentityRemoved(IdentityId id) { } /*** ***/ - -void Client::fakeInput(BufferId bufferUid, QString message) { - Buffer *buff = buffer(bufferUid); - if(!buff) - qWarning() << "No Buffer with uid" << bufferUid << "can't send Input" << message; - else - instance()->userInput(buff->bufferInfo(), message); +void Client::userInput(BufferInfo bufferInfo, QString message) { + emit instance()->sendInput(bufferInfo, message); } /*** core connection stuff ***/ @@ -454,7 +446,3 @@ AbstractUiMsg *Client::layoutMsg(const Message &msg) { return instance()->mainUi->layoutMsg(msg); } -void Client::userInput(BufferInfo id, QString msg) { - emit sendInput(id, msg); -} -