Migrates all legacy accounts.
authorCamila <hello@camila.codes>
Tue, 12 Sep 2023 12:54:31 +0000 (14:54 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Wed, 13 Sep 2023 12:49:27 +0000 (14:49 +0200)
Signed-off-by: Camila <hello@camila.codes>
src/gui/accountmanager.cpp

index 520cd886edc17a62920b3585a5510d55868c0dcd..51630d0a95cfac00343ca7026a7022c70398b431 100644 (file)
@@ -253,10 +253,11 @@ bool AccountManager::restoreFromLegacySettings()
                 addAccount(acc);
                 QMessageBox::information(nullptr,
                                          tr("Legacy import"),
-                                         tr("Successfully imported account from legacy client: %1").arg(acc->prettyName()));
-                return true;
+                                         tr("Successfully imported account from legacy client: %1").arg(acc->prettyName()));                
             }
+            settings->endGroup();
         }
+        return true;
     }
 
     QMessageBox::information(nullptr,