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:
Christian Kellner 2017-11-08 21:16:37 +01:00
parent 74c5e785d3
commit b9b7a1d039

View File

@ -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);