Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): don't emit idSet signal twice
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Nov 15, 2016
1 parent 87fe968 commit 355fb2a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/core/core.cpp
Expand Up @@ -324,13 +324,9 @@ void Core::start()

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)
{
profile.saveToxSave();
emit idSet(getSelfId().toString());
}

if (isReady())
Expand Down

0 comments on commit 355fb2a

Please sign in to comment.