* Tooltips causing crash 4.x-dev

Mon, 17 May 2021 23:58:56 +0300

author
cemkalyoncu
date
Mon, 17 May 2021 23:58:56 +0300
branch
4.x-dev
changeset 1681
8ab453216da3
parent 1680
7bf7ffcbda96
child 1682
c84d224c7608

* Tooltips causing crash

Source/Gorgon/UI/TooltipManager.cpp file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/UI/TooltipManager.cpp	Mon May 17 23:52:19 2021 +0300
+++ b/Source/Gorgon/UI/TooltipManager.cpp	Mon May 17 23:58:56 2021 +0300
@@ -107,7 +107,8 @@
     void TooltipManager::Tick() {
         if(!toplevel) {
             toplevel = dynamic_cast<Gorgon::Window*>(&container->TopLevelLayer());
-            ASSERT(toplevel, "Tooltip manager cannot reach to top level window.");
+            if(!toplevel)
+                return;
             
             if(!target && !settext) {
                 CreateTarget();

mercurial