X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Fclient.cpp;h=8cc87e417bad358f562765cb78a71bdc9055eb1d;hb=08aac67d4dc813ed541a81d06fb83d9c4fec5834;hp=cedc0422679c1287f55890cf9da0ba39288c9191;hpb=c5cbe5eb77fce2ab954a98399a1450803108217b;p=quassel.git diff --git a/src/client/client.cpp b/src/client/client.cpp index cedc0422..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,17 +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 - emit instance()->sendInput(buff->bufferInfo(), message); -} - -void Client::fakeInput(BufferInfo bufferInfo, QString message) { - fakeInput(bufferInfo, message); +void Client::userInput(BufferInfo bufferInfo, QString message) { + emit instance()->sendInput(bufferInfo, message); } /*** core connection stuff ***/ @@ -458,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); -} -