Browse Source

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

reviewable/pr3676/r7
sudden6 9 years ago
parent
commit
355fb2ae41
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 4
      src/core/core.cpp

4
src/core/core.cpp

@ -324,13 +324,9 @@ void Core::start() @@ -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())

Loading…
Cancel
Save