aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/publish-calendar/url-editor-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/publish-calendar/url-editor-dialog.c')
-rw-r--r--plugins/publish-calendar/url-editor-dialog.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/publish-calendar/url-editor-dialog.c b/plugins/publish-calendar/url-editor-dialog.c
index 7eed7f796e..352d6eff1e 100644
--- a/plugins/publish-calendar/url-editor-dialog.c
+++ b/plugins/publish-calendar/url-editor-dialog.c
@@ -282,8 +282,12 @@ set_from_uri (UrlEditorDialog *dialog)
if (euri->host)
gtk_entry_set_text (GTK_ENTRY (dialog->server_entry), euri->host);
- if (euri->port)
- gtk_entry_set_text (GTK_ENTRY (dialog->port_entry), euri->port);
+ if (euri->port) {
+ char *port;
+ port = g_strdup_printf ("%d", euri->port);
+ gtk_entry_set_text (GTK_ENTRY (dialog->port_entry), port);
+ g_free (port);
+ }
if (euri->path)
gtk_entry_set_text (GTK_ENTRY (dialog->file_entry), euri->path);