mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +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;
|
||||
}
|
||||
|
||||
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"));
|
||||
g_option_context_free (context);
|
||||
|
Loading…
Reference in New Issue
Block a user