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

refactor(startup): use instance during profile import

This commit is contained in:
jenli669 2019-06-24 01:46:09 +02:00
parent a7b4a09ccb
commit 3ebea3cd4b
No known key found for this signature in database
GPG Key ID: 8267F9F7C2BF7E5E

View File

@ -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;
}
}