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:
parent
87fe968014
commit
355fb2ae41
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user