[Xfce4-commits] [apps/gigolo] 02/02: Only show an error dialog if the share name/uri field is visible/required (bug #14928)
noreply at xfce.org
noreply at xfce.org
Thu Feb 28 17:53:19 CET 2019
This is an automated email from the git hooks/post-receive script.
l a n d r y p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/gigolo.
commit 077282fa40daeaae623a0f5fa239ff8aab370b61
Author: Landry Breuil <landry at xfce.org>
Date: Thu Feb 28 17:51:58 2019 +0100
Only show an error dialog if the share name/uri field is visible/required (bug #14928)
Fixes regression introduced in 862e5aac
---
src/bookmarkeditdialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/bookmarkeditdialog.c b/src/bookmarkeditdialog.c
index a9e7058..d794754 100644
--- a/src/bookmarkeditdialog.c
+++ b/src/bookmarkeditdialog.c
@@ -243,7 +243,7 @@ gint gigolo_bookmark_edit_dialog_run(GigoloBookmarkEditDialog *dialog)
gtk_widget_grab_focus(priv->host_entry);
}
}
- if (! error && gtk_widget_get_parent(priv->share_combo) != NULL)
+ if (gtk_widget_is_visible(priv->share_combo) && ! error && gtk_widget_get_parent(priv->share_combo) != NULL)
{
tmp = gtk_entry_get_text(GTK_ENTRY(priv->share_entry));
if (! *tmp)
@@ -254,7 +254,7 @@ gint gigolo_bookmark_edit_dialog_run(GigoloBookmarkEditDialog *dialog)
gtk_widget_grab_focus(priv->share_combo);
}
}
- if (! error && gtk_widget_get_parent(priv->uri_entry) != NULL)
+ if (gtk_widget_is_visible(priv->uri_entry) && ! error && gtk_widget_get_parent(priv->uri_entry) != NULL)
{
tmp = gtk_entry_get_text(GTK_ENTRY(priv->uri_entry));
if (! *tmp || ! check_custom_uri(tmp))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list