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:
parent
a7b4a09ccb
commit
3ebea3cd4b
|
@ -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…
Reference in New Issue
Block a user