History

Merge branch 'master' of https://github.com/highfidelity/hifi

Andrzej Kapolka committed 12 years ago

Commit 93cb5fc2 parents 4c49d00 9aac74033 files · +1228 −297Browse files

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

Unified · Split

interface/src/Application.cpp+15−6
@@ -81,9 +81,10 @@ · 80 unmodified lines
8181 #include "scripting/LocationScriptingInterface.h"
8282
8383 #include "ui/InfoView.h"
84+#include "ui/OAuthWebViewHandler.h"
8485 #include "ui/Snapshot.h"
85−#include "ui/TextRenderer.h"
8686 #include "ui/Stats.h"
87+#include "ui/TextRenderer.h"
8788
8889 using namespace std;
8990
@@ -361,12 +362,17 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 271 unmodified lines
361362 QMutexLocker locker(&_settingsMutex);
362363 _previousScriptLocation = _settings->value("LastScriptLocation", QVariant("")).toString();
363364 }
364−
365+
365366 connect(_window, &MainWindow::windowGeometryChanged,
366367 _runningScriptsWidget, &RunningScriptsWidget::setBoundary);
367−
368− //When -url in command line, teleport to location
369− urlGoTo(argc, constArgv);
368+
369+ //When -url in command line, teleport to location
370+ urlGoTo(argc, constArgv);
371+
372+ // call the OAuthWebviewHandler static getter so that its instance lives in our thread
373+ OAuthWebViewHandler::getInstance();
374+ // make sure the High Fidelity root CA is in our list of trusted certs
375+ OAuthWebViewHandler::addHighFidelityRootCAToSSLConfig();
370376 }
371377
372378 Application::~Application() {
@@ -3089,7 +3095,7 @@ void Application::updateWindowTitle(){ · 2716 unmodified lines
30893095 QString buildVersion = " (build " + applicationVersion() + ")";
30903096 NodeList* nodeList = NodeList::getInstance();
30913097
3092− QString username = AccountManager::getInstance().getUsername();
3098+ QString username = AccountManager::getInstance().getAccountInfo().getUsername();
30933099 QString title = QString() + (!username.isEmpty() ? username + " " : QString()) + nodeList->getSessionUUID().toString()
30943100 + " @ " + nodeList->getDomainHandler().getHostname() + buildVersion;
30953101 qDebug("Application title set to: %s", title.toStdString().c_str());
@@ -3115,6 +3121,9 @@ void Application::domainChanged(const QString& domainHostname) { · 19 unmodified lines
31153121
31163122 // reset the voxels renderer
31173123 _voxels.killLocalVoxels();
3124+
3125+ // reset the auth URL for OAuth web view handler
3126+ OAuthWebViewHandler::getInstance().clearLastAuthorizationURL();
31183127 }
31193128
31203129 void Application::connectedToDomain(const QString& hostname) {

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