Browse Source

refactor(startup): use instance during profile import

reviewable/pr5711/r5
jenli669 6 years ago
parent
commit
3ebea3cd4b
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E
  1. 8
      src/widget/loginscreen.cpp

8
src/widget/loginscreen.cpp

@ -245,10 +245,8 @@ void LoginScreen::retranslateUi() @@ -245,10 +245,8 @@ void LoginScreen::retranslateUi()
void LoginScreen::onImportProfile()
{
ProfileImporter* pi = new ProfileImporter(this);
if (pi->importProfile())
ProfileImporter pi(this);
if (pi.importProfile()) {
reset();
delete pi;
}
}

Loading…
Cancel
Save