History

more work on authentication, show login window when domain asks

Stephen Birarda committed 12 years ago

Commit 8a0136e1 parent c762b9213 files · +165 −35Browse files

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

Unified · Split

interface/src/Application.cpp+5−3
@@ -207,6 +207,9 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 206 unmodified lines
207207 connect(nodeList, SIGNAL(nodeKilled(SharedNodePointer)), &_voxels, SLOT(nodeKilled(SharedNodePointer)));
208208 connect(nodeList, &NodeList::uuidChanged, this, &Application::updateWindowTitle);
209209
210+ connect(&AccountManager::getInstance(), SIGNAL(authenticationRequiredForRootURL(const QUrl&)),
211+ Menu::getInstance(), SLOT(showLoginForRootURL(const QUrl&)));
212+
210213 // read the ApplicationInfo.ini file for Name/Version/Domain information
211214 QSettings applicationInfo("resources/info/ApplicationInfo.ini", QSettings::IniFormat);
212215
@@ -4216,6 +4219,5 @@ void Application::takeSnapshot() { · 4003 unmodified lines
42164219 player->setMedia(QUrl::fromLocalFile(inf.absoluteFilePath()));
42174220 player->play();
42184221
4219− Snapshot::saveSnapshot(_glWidget, AccountManager::getUsername(), _myAvatar->getPosition());
4220−}
4221−
4222+ Snapshot::saveSnapshot(_glWidget, AccountManager::getInstance().getUsername(), _myAvatar->getPosition());
4223+}

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