1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(core): don't emit idSet signal twice

This commit is contained in:
sudden6 2016-11-07 18:16:22 +01:00
parent 87fe968014
commit 355fb2ae41
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -324,13 +324,9 @@ void Core::start()
ready = true; ready = true;
// If we created a new profile earlier,
// now that we're ready save it and ONLY THEN broadcast the new ID.
// This is useful for e.g. the profileForm that searches for saves.
if (isNewProfile) if (isNewProfile)
{ {
profile.saveToxSave(); profile.saveToxSave();
emit idSet(getSelfId().toString());
} }
if (isReady()) if (isReady())