summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Alan F <ajf@eth0.org.uk>2014-02-05 21:17:57 +0000
committerGravatar Alan F <ajf@eth0.org.uk>2014-02-05 21:17:57 +0000
commit607de213ed43ce57c67c3ec995d4da2b02331baf (patch)
treed27c811530382647dee4cdc6248841a573fae961 /src
parent98eb06aaeb6ee3d1f1440c3000311e73367778d7 (diff)
Red Hat BZ#985147 - looks like a port test request failed, after the remote preferences window had been closed, so the window had been unreferenced and destroyed. check it's a valid window before trying to use it as a parent.
Diffstat (limited to 'src')
-rw-r--r--src/trg-remote-prefs-dialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-remote-prefs-dialog.c b/src/trg-remote-prefs-dialog.c
index f8bd43b..d90123c 100644
--- a/src/trg-remote-prefs-dialog.c
+++ b/src/trg-remote-prefs-dialog.c
@@ -435,8 +435,8 @@ static gboolean on_port_tested(gpointer data)
gtk_label_set_markup(GTK_LABEL(priv->port_test_label),
_
("Port is <span font_weight=\"bold\" fgcolor=\"red\">closed</span>"));
- } else {
- trg_error_dialog(GTK_WINDOW(data), response);
+ } else if (GTK_IS_WINDOW(data)) {
+ trg_error_dialog(GTK_WINDOW(data), response);
}
}