History

Make login dialog automatically show only once per domain visit

David Rowe committed 12 years ago

Commit 46c1a9d1 parent 61a09143 files · +22 −3Browse files

Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all

Unified · Split

interface/src/Application.cpp+2−1
@@ -246,7 +246,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 245 unmodified lines
246246 connect(&domainHandler, SIGNAL(connectedToDomain(const QString&)), SLOT(updateWindowTitle()));
247247 connect(&domainHandler, SIGNAL(disconnectedFromDomain()), SLOT(updateWindowTitle()));
248248 connect(&domainHandler, &DomainHandler::settingsReceived, this, &Application::domainSettingsReceived);
249−
249+ connect(&domainHandler, &DomainHandler::hostnameChanged, Menu::getInstance(), &Menu::clearLoginDomain);
250+
250251 // hookup VoxelEditSender to PaymentManager so we can pay for octree edits
251252 const PaymentManager& paymentManager = PaymentManager::getInstance();
252253 connect(&_voxelEditSender, &VoxelEditPacketSender::octreePaymentRequired,

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