mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 11:19:51 +02:00
Fix bugsplat username setting
This commit is contained in:
parent
d20cf12941
commit
eb402eab75
1 changed files with 2 additions and 2 deletions
|
@ -145,9 +145,9 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
#ifdef HAS_BUGSPLAT
|
||||
AccountManager& accountManager = AccountManager::getInstance();
|
||||
mpSender.setDefaultUserName(accountManager.getAccountInfo().getUsername().toLatin1());
|
||||
mpSender.setDefaultUserName(accountManager.getAccountInfo().getUsername().toLatin1().constData());
|
||||
QObject::connect(&accountManager, &AccountManager::usernameChanged, &app, [&mpSender](const QString& newUsername) {
|
||||
mpSender.setDefaultUserName(newUsername);
|
||||
mpSender.setDefaultUserName(newUsername.toLatin1().constData());
|
||||
});
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue