mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-06-30 23:29:33 +00:00
Avoid disconnecting signal during handlers destroy
This commit is contained in:
parent
a4da654d99
commit
67e5877849
|
@ -38,6 +38,7 @@ namespace Gitg
|
|||
private void weak_notify(Object o)
|
||||
{
|
||||
d_widget = null;
|
||||
d_sid = 0;
|
||||
|
||||
if (d_lifetime != null)
|
||||
{
|
||||
|
@ -50,7 +51,7 @@ namespace Gitg
|
|||
{
|
||||
if (d_widget != null)
|
||||
{
|
||||
if (d_sid != 0)
|
||||
if (d_sid != 0 && SignalHandler.is_connected(d_widget, d_sid))
|
||||
{
|
||||
d_widget.disconnect(d_sid);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user