Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Windows
pEp for Outlook
Commits
981e1624
Commit
981e1624
authored
May 10, 2021
by
Thomas
Browse files
Set watched explorers/inspectors to null upon closing.
parent
8a14c3a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Wrappers/WatchedExplorer.cs
View file @
981e1624
...
...
@@ -179,6 +179,7 @@ namespace pEp
private
void
Explorer_Close
()
{
Globals
.
ThisAddIn
.
RemoveFromWatchedExplorers
(
this
);
this
.
Explorer
=
null
;
this
.
Dispose
();
}
...
...
Wrappers/WatchedInspector.cs
View file @
981e1624
...
...
@@ -48,7 +48,7 @@ namespace pEp
public
Outlook
.
Inspector
Inspector
{
get
;
private
set
;
}
=
null
;
/// <summary>
/// Gets the
Inspector that is wrapped by this
WatchedInspector.
/// Gets the Watched
Inspector.
/// </summary>
public
override
dynamic
Window
{
...
...
@@ -109,7 +109,6 @@ namespace pEp
if
(
this
.
Inspector
!=
null
)
{
((
Outlook
.
InspectorEvents_10_Event
)
this
.
Inspector
).
Close
-=
WatchedInspector_Close
;
}
}
...
...
@@ -128,6 +127,7 @@ namespace pEp
private
void
WatchedInspector_Close
()
{
Globals
.
ThisAddIn
.
RemoveFromWatchedInspectors
(
this
);
this
.
Inspector
=
null
;
this
.
Dispose
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment