MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / ~SettingsWindow

Method ~SettingsWindow

source/modes/SettingsWindow.cpp:131–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131SettingsWindow::~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
158void SettingsWindow::initConfig()
159{

Callers

nothing calls this directly

Calls 2

hideMethod · 0.80
disconnectMethod · 0.45

Tested by

no test coverage detected