History

New layout

stojce committed 12 years ago

Commit a29025a1 parent 939c17d2 files · +135 −10Browse files

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

Unified · Split

interface/src/Menu.cpp+10−2
@@ -76,7 +76,7 @@ Menu::Menu() : · 75 unmodified lines
7676 _lastAdjust(usecTimestampNow()),
7777 _fpsAverage(FIVE_SECONDS_OF_FRAMES),
7878 _loginAction(NULL),
79− _preferencesDialog()
79+ _preferencesDialog(NULL)
8080
8181 {
8282 Application *appInstance = Application::getInstance();
@@ -678,6 +678,14 @@ void Menu::loginForCurrentDomain() { · 595 unmodified lines
678678 }
679679
680680 void Menu::editPreferences() {
681+ if (! _preferencesDialog) {
682+ _preferencesDialog = new PreferencesDialog(Application::getInstance()->getGLWidget());
683+ _preferencesDialog->show();
684+ }
685+ _preferencesDialog->raise();
686+
687+ /*
688+
681689 Application* applicationInstance = Application::getInstance();
682690
683691 QDialog dialog(applicationInstance->getWindow());
@@ -812,7 +820,7 @@ void Menu::editPreferences() { · 128 unmodified lines
812820 _faceshiftEyeDeflection = faceshiftEyeDeflection->value() / (float)faceshiftEyeDeflection->maximum();
813821 }
814822 QMetaObject::invokeMethod(applicationInstance->getAudio(), "reset", Qt::QueuedConnection);
815−
823+*/
816824 sendFakeEnterEvent();
817825 }
818826