X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.cpp;h=b599c9aab04ced81dd86d5d1f608bda3b49247ee;hp=64d228d635c759e3c1715ff38677dee78ad98983;hb=93800658bba5dcbeca7f3deb02dd7091c455efe8;hpb=997fd2faaf19b25128fa7516be89aa5b0c165ae7 diff --git a/src/client/client.cpp b/src/client/client.cpp index 64d228d6..b599c9aa 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -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(); }