From 89bf5b0f7cd8161ac4780e65848d3c1a0eace4d6 Mon Sep 17 00:00:00 2001 From: Duke Date: Sun, 26 Mar 2023 08:15:53 -0700 Subject: [PATCH] Make sure to init from phrase when trying a new server during restore --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index f7f8136..d39ae4d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -222,7 +222,8 @@ MainWindow::MainWindow(QWidget *parent) : config->server = Settings::getRandomServer(); qDebug() << __func__ << ": new server is " << config->server; // retry with the new server - char* resp = litelib_initialize_new(config->dangerous,config->server.toStdString().c_str()); + char* resp = litelib_initialize_new_from_phrase(config->dangerous,config->server.toStdString().c_str(), + seed.toStdString().c_str(), birthday, number); reply = litelib_process_response(resp); }