Browse Source

Another go at fixing resource modification dialog issue

Josh Engebretson 10 years ago
parent
commit
0d682c8cc2
1 changed files with 9 additions and 2 deletions
  1. 9 2
      Source/AtomicEditor/Editors/ResourceEditor.cpp

+ 9 - 2
Source/AtomicEditor/Editors/ResourceEditor.cpp

@@ -81,7 +81,6 @@ public:
                     container_->OnEvent(ev);
                     editor_->Close(container_->GetNumPages()>1);
                 }
-
                 return true;
             }
             else if (ev.target->GetID() == TBIDC("tabclose"))
@@ -89,13 +88,21 @@ public:
                 if (RequestClose())
                 {
                     container_->OnEvent(ev);
-                    return true;
                 }
+
+                return true;
+            }
+            else
+            {
+                TBWidgetEvent nevent = ev;
+                nevent.target = this;
+                return container_->OnEvent(nevent);
             }
         }
 
         return false;
     }
+
 };
 
 ResourceEditor::ResourceEditor(Context* context, const String& fullpath, UITabContainer *container):