Permalink
Browse files

Fix crash when quitting if a sub window was closed

  • Loading branch information...
feragon committed Jun 10, 2016
1 parent abfb9d8 commit b4be384e86200375fa19b287d0871b18511eb522
Showing with 3 additions and 1 deletion.
  1. +3 −1 lcUI/lua/qtbridge.cpp
View
@@ -148,7 +148,9 @@ void addLCBindings(lua_State *L) {
.beginModule("lc")
.beginExtendClass<CadMdiChild, QWidget>("CadMdiChild")
.addConstructor(LUA_SP(std::shared_ptr<CadMdiChild>), LUA_ARGS(LuaIntf::_opt<QWidget*>))
.addFactory([]() {
return new CadMdiChild;
})
.addFunction("cursor", &CadMdiChild::cursor)
.addFunction("document", &CadMdiChild::document)
.addProperty("id", &CadMdiChild::id, &CadMdiChild::setId)

0 comments on commit b4be384

Please sign in to comment.