diff src/gui/dialog/settings/services.cpp @ 65:26721c28bf22

*: avoid usage of (to|from)StdString in Qt5 (and probably Qt6 as well) these functions are only available (or even usable) if Qt and Minori were built with the *same standard headers*, which may not be the case in some circumstances. hence, we'll use our own conversion functions, which we probably should use anyway.
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 23:26:35 -0400
parents 3d2decf093bb
children 2417121d894e
line wrap: on
line diff
--- a/src/gui/dialog/settings/services.cpp	Sun Oct 01 23:15:43 2023 -0400
+++ b/src/gui/dialog/settings/services.cpp	Sun Oct 01 23:26:35 2023 -0400
@@ -1,5 +1,6 @@
 #include "core/anime.h"
 #include "core/session.h"
+#include "core/strings.h"
 #include "gui/dialog/settings.h"
 #include "services/anilist.h"
 #include <QComboBox>
@@ -84,7 +85,7 @@
 }
 
 void SettingsPageServices::SaveInfo() {
-	session.config.anilist.username = username.toStdString();
+	session.config.anilist.username = Strings::ToUtf8String(username);
 	session.config.service = service;
 }