mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-05 04:59:59 +02:00
Add HF username as default username for bugsplat
This commit is contained in:
parent
a2eb819bc2
commit
d20cf12941
1 changed files with 8 additions and 0 deletions
|
@ -143,6 +143,14 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
QObject::connect(&server, &QLocalServer::newConnection, &app, &Application::handleLocalServerConnection);
|
||||
|
||||
#ifdef HAS_BUGSPLAT
|
||||
AccountManager& accountManager = AccountManager::getInstance();
|
||||
mpSender.setDefaultUserName(accountManager.getAccountInfo().getUsername().toLatin1());
|
||||
QObject::connect(&accountManager, &AccountManager::usernameChanged, &app, [&mpSender](const QString& newUsername) {
|
||||
mpSender.setDefaultUserName(newUsername);
|
||||
});
|
||||
#endif
|
||||
|
||||
QTranslator translator;
|
||||
translator.load("i18n/interface_en");
|
||||
app.installTranslator(&translator);
|
||||
|
|
Loading…
Reference in a new issue