mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
gio-tool: fix inverted logic in monitor tool
The tool should refuse to work if none of the locations to watch are set, not if *any* of them are unset. https://bugzilla.gnome.org/show_bug.cgi?id=790093
This commit is contained in:
parent
74c5e785d3
commit
b9b7a1d039
@ -223,7 +223,7 @@ handle_monitor (int argc, gchar *argv[], gboolean do_help)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!watch_dirs || !watch_files || !watch_direct || !watch_silent || !watch_default)
|
if (!watch_dirs && !watch_files && !watch_direct && !watch_silent && !watch_default)
|
||||||
{
|
{
|
||||||
show_help (context, _("No locations given"));
|
show_help (context, _("No locations given"));
|
||||||
g_option_context_free (context);
|
g_option_context_free (context);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user