History

Fix bugsplat username setting

Ryan Huffman committed 10 years ago

Commit eb402ea1 parent d20cf121 file · +2 −2Browse files

Showing the changes to interface/src/main.cpp (1 of 1 file). Show all

Unified · Split

interface/src/main.cpp+2−2
@@ -145,9 +145,9 @@ int main(int argc, const char* argv[]) { · 144 unmodified lines
145 145
146#ifdef HAS_BUGSPLAT146#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#endif152#endif
153 153

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t