History

Merge branch 'master' of https://github.com/worklist/hifi into shifty

Andrzej Kapolka committed 13 years ago

Commit 834b6712 parents 0a9db6a fa53e5d43 files · +356 −388Browse files

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

Unified · Split

interface/src/Menu.cpp+13−4
@@ -427,6 +427,11 @@ Menu::Menu() : · 426 unmodified lines
427 addCheckableActionToQMenuAndActionHash(developerMenu, MenuOption::DestructiveAddVoxel);427 addCheckableActionToQMenuAndActionHash(developerMenu, MenuOption::DestructiveAddVoxel);
428}428}
429 429
430Menu::~Menu() {
431 bandwidthDetailsClosed();
432 voxelStatsDetailsClosed();
433}
434
430void Menu::loadSettings(QSettings* settings) {435void Menu::loadSettings(QSettings* settings) {
431 if (!settings) {436 if (!settings) {
432 settings = Application::getInstance()->getSettings();437 settings = Application::getInstance()->getSettings();
@@ -869,8 +874,10 @@ void Menu::bandwidthDetails() { · 436 unmodified lines
869}874}
870 875
871void Menu::bandwidthDetailsClosed() {876void Menu::bandwidthDetailsClosed() {
872 delete _bandwidthDialog;877 if (_bandwidthDialog) {
873 _bandwidthDialog = NULL;878 delete _bandwidthDialog;
879 _bandwidthDialog = NULL;
880 }
874}881}
875 882
876void Menu::voxelStatsDetails() {883void Menu::voxelStatsDetails() {
@@ -884,8 +891,10 @@ void Menu::voxelStatsDetails() { · 7 unmodified lines
884}891}
885 892
886void Menu::voxelStatsDetailsClosed() {893void Menu::voxelStatsDetailsClosed() {
887 delete _voxelStatsDialog;894 if (_voxelStatsDialog) {
888 _voxelStatsDialog = NULL;895 delete _voxelStatsDialog;
896 _voxelStatsDialog = NULL;
897 }
889}898}
890 899
891void Menu::cycleFrustumRenderMode() {900void Menu::cycleFrustumRenderMode() {