Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 969 vs 970 for /trunk/Source Code/Editor/Widgets/ImWindowManagerDivide.cpp

Diff revisions: vs.
  @@ -47,15 +47,16 @@
47 47 Attorney::EditorWindowManager::renderDrawList(_parent, pDrawData, windowGUID);
48 48 }
49 49
50 - void ImwWindowManagerDivide::registerWindow(ImwWindowDivide* window) {
50 + void ImwWindowManagerDivide::onCreateWindow(ImwWindowDivide* window) {
51 51 ACKNOWLEDGE_UNUSED(window);
52 52
53 53 ++_windowCount;
54 54 }
55 55
56 - void ImwWindowManagerDivide::unregisterWindow(ImwWindowDivide* window) {
57 - if (!window->isMainWindow()) {
58 - _parent.context().app().windowManager().destroyWindow(window->nativeWindow());
56 + void ImwWindowManagerDivide::onDestroyWindow(ImwWindowDivide* window) {
57 + if (!window->isMainWindow() && window->nativeWindow()) {
58 + DisplayWindow* windowPtr = window->nativeWindow();
59 + _parent.context().app().windowManager().destroyWindow(windowPtr);
59 60 }
60 61 --_windowCount;
61 62 }