mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-23 13:20:50 +00:00
Add a comment to ~PreviewEditor()
This commit is contained in:
parent
36a85e6d3f
commit
87f3b578e5
@ -155,14 +155,17 @@ class PreviewEditor : public Editor,
|
|||||||
public EditorCustomizationDelegate {
|
public EditorCustomizationDelegate {
|
||||||
public:
|
public:
|
||||||
PreviewEditor(Document* document)
|
PreviewEditor(Document* document)
|
||||||
: Editor(document, Editor::kShowOutside) // Don't show grid/mask in preview preview
|
: Editor(document, Editor::kShowOutside) { // Don't show grid/mask in preview preview
|
||||||
{
|
|
||||||
setCustomizationDelegate(this);
|
setCustomizationDelegate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
~PreviewEditor()
|
~PreviewEditor() {
|
||||||
{
|
// As we are destroying this instance, we have to remove it as the
|
||||||
setCustomizationDelegate(NULL);
|
// customization delegate. Editor::~Editor() will call
|
||||||
|
// setCustomizationDelegate(nullptr) too which triggers a
|
||||||
|
// EditorCustomizationDelegate::dispose() if the customization
|
||||||
|
// isn't nullptr.
|
||||||
|
setCustomizationDelegate(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
// EditorCustomizationDelegate implementation
|
// EditorCustomizationDelegate implementation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user