| 129 | } |
| 130 | |
| 131 | SettingsWindow::~SettingsWindow() |
| 132 | { |
| 133 | // Disconnects all event connections. |
| 134 | for(CEGUI::Event::Connection& c : mEventConnections) |
| 135 | c->disconnect(); |
| 136 | |
| 137 | if (mSettingsWindow) |
| 138 | { |
| 139 | mSettingsWindow->hide(); |
| 140 | mSettingsWindow->setModalState(false); |
| 141 | // Will be handled by the window manager. Don't do it. |
| 142 | //mRootWindow->removeChild(mSettingsWindow->getID()); |
| 143 | CEGUI::WindowManager* wmgr = CEGUI::WindowManager::getSingletonPtr(); |
| 144 | wmgr->destroyWindow(mSettingsWindow); |
| 145 | } |
| 146 | |
| 147 | if (mApplyWindow) |
| 148 | { |
| 149 | mApplyWindow->hide(); |
| 150 | mApplyWindow->setModalState(false); |
| 151 | // Will be handled by the window manager. Don't do it. |
| 152 | //mRootWindow->removeChild(mApplyWindow->getID()); |
| 153 | CEGUI::WindowManager* wmgr = CEGUI::WindowManager::getSingletonPtr(); |
| 154 | wmgr->destroyWindow(mApplyWindow); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | void SettingsWindow::initConfig() |
| 159 | { |
nothing calls this directly
no test coverage detected