mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-21 16:20:53 +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:
|
||||
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);
|
||||
}
|
||||
|
||||
~PreviewEditor()
|
||||
{
|
||||
setCustomizationDelegate(NULL);
|
||||
~PreviewEditor() {
|
||||
// As we are destroying this instance, we have to remove it as the
|
||||
// customization delegate. Editor::~Editor() will call
|
||||
// setCustomizationDelegate(nullptr) too which triggers a
|
||||
// EditorCustomizationDelegate::dispose() if the customization
|
||||
// isn't nullptr.
|
||||
setCustomizationDelegate(nullptr);
|
||||
}
|
||||
|
||||
// EditorCustomizationDelegate implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user