X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=4b38109028ffc963732bb193c2b01a6b1b2bf14d;hp=64d228d635c759e3c1715ff38677dee78ad98983;hb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;hpb=997fd2faaf19b25128fa7516be89aa5b0c165ae7 diff --git a/src/client/client.cpp b/src/client/client.cpp index 64d228d6..4b381090 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -300,6 +300,9 @@ void Client::setSyncedToCore() { _bufferViewManager = new BufferViewManager(signalProxy(), this); connect(bufferViewManager(), SIGNAL(initDone()), this, SLOT(requestInitialBacklog())); connect(bufferViewManager(), SIGNAL(initDone()), this, SLOT(createDefautBufferView())); + + createDefaultIdentity(); + _syncedToCore = true; emit connected(); emit coreConnectionStateChanged(true); @@ -319,6 +322,15 @@ void Client::createDefautBufferView() { } } +void Client::createDefaultIdentity() { + if(_identities.isEmpty()) { + Identity identity; + identity.setToDefaults(); + identity.setIdentityName(tr("Default Identity")); + createIdentity(identity); + } +} + void Client::setSecuredConnection() { emit securedConnection(); }