Showing the changes to interface/src/main.cpp (1 of 1 file). Show all
Unified · Split
| @@ -145,9 +145,9 @@ int main(int argc, const char* argv[]) { · 144 unmodified lines | |||
| 145 | 145 | ||
| 146 | #ifdef HAS_BUGSPLAT | 146 | #ifdef HAS_BUGSPLAT |
| 147 | AccountManager& accountManager = AccountManager::getInstance(); | 147 | AccountManager& accountManager = AccountManager::getInstance(); |
| 148 | mpSender.setDefaultUserName(accountManager.getAccountInfo().getUsername().toLatin1()); | 148 | mpSender.setDefaultUserName(accountManager.getAccountInfo().getUsername().toLatin1().constData()); |
| 149 | QObject::connect(&accountManager, &AccountManager::usernameChanged, &app, [&mpSender](const QString& newUsername) { | 149 | QObject::connect(&accountManager, &AccountManager::usernameChanged, &app, [&mpSender](const QString& newUsername) { |
| 150 | mpSender.setDefaultUserName(newUsername); | 150 | mpSender.setDefaultUserName(newUsername.toLatin1().constData()); |
| 151 | }); | 151 | }); |
| 152 | #endif | 152 | #endif |
| 153 | 153 | ||