History

move address lookup errors to AddressBarDialog

Stephen Birarda committed 11 years ago

Commit 78edb941 parent 1b48cf74 files · +19 −18Browse files

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

Unified · Split

interface/src/Menu.cpp+0−15
@@ -153,11 +153,6 @@ Menu::Menu() : · 152 unmodified lines
153153 // connect to the appropriate signal of the AccountManager so that we can change the Login/Logout menu item
154154 connect(&accountManager, &AccountManager::profileChanged, this, &Menu::toggleLoginMenuItem);
155155 connect(&accountManager, &AccountManager::logoutComplete, this, &Menu::toggleLoginMenuItem);
156−
157− // connect to signal of account manager so we can tell user when the user/place they looked at is offline
158− AddressManager* addressManager = DependencyManager::get<AddressManager>();
159− connect(addressManager, &AddressManager::lookupResultIsOffline, this, &Menu::displayAddressOfflineMessage);
160− connect(addressManager, &AddressManager::lookupResultIsNotFound, this, &Menu::displayAddressNotFoundMessage);
161156
162157 addDisabledActionAndSeparator(fileMenu, "Scripts");
163158 addActionToQMenuAndActionHash(fileMenu, MenuOption::LoadScript, Qt::CTRL | Qt::Key_O, appInstance, SLOT(loadDialog()));
@@ -1146,16 +1141,6 @@ void Menu::toggleAddressBar() { · 982 unmodified lines
11461141 }
11471142 }
11481143
1149−void Menu::displayAddressOfflineMessage() {
1150− QMessageBox::information(Application::getInstance()->getWindow(), "Address offline",
1151− "That user or place is currently offline.");
1152−}
1153−
1154−void Menu::displayAddressNotFoundMessage() {
1155− QMessageBox::information(Application::getInstance()->getWindow(), "Address not found",
1156− "There is no address information for that user or place.");
1157−}
1158−
11591144 void Menu::muteEnvironment() {
11601145 int headerSize = numBytesForPacketHeaderGivenPacketType(PacketTypeMuteEnvironment);
11611146 int packetSize = headerSize + sizeof(glm::vec3) + sizeof(float);