- Removed useless class property in GUI class

This commit is contained in:
Christophe Dumez 2009-11-19 07:21:55 +00:00
parent 10c40c6485
commit 41e18fd245
2 changed files with 5 additions and 6 deletions

View file

@ -352,12 +352,13 @@ void GUI::balloonClicked() {
}
void GUI::acceptConnection() {
clientConnection = localServer->nextPendingConnection();
QLocalSocket *clientConnection = localServer->nextPendingConnection();
connect(clientConnection, SIGNAL(disconnected()), this, SLOT(readParamsOnSocket()));
qDebug("accepted connection from another instance");
}
void GUI::readParamsOnSocket() {
QLocalSocket *clientConnection = static_cast<QLocalSocket*>(sender());
if(clientConnection) {
QByteArray params = clientConnection->readAll();
if(!params.isEmpty()) {