Fixed a segfault happening when closing a layout tab.

This commit is contained in:
Matthias Koefferlein 2021-03-16 23:35:24 +01:00
parent 1c58bb8e02
commit 9fbc39a827
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,6 @@
#include "layProperties.h"
#include "layEditable.h"
namespace lay
{

View File

@ -25,6 +25,7 @@
#define HDR_layProperties
#include "laybasicCommon.h"
#include "layEditable.h"
#include <QFrame>
@ -209,7 +210,7 @@ public:
*/
lay::Editable *editable ()
{
return mp_editable;
return mp_editable.get ();
}
/**
@ -229,7 +230,7 @@ signals:
private:
db::Manager *mp_manager;
lay::Editable *mp_editable;
tl::weak_ptr<lay::Editable> mp_editable;
};
}