aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 10:39:56 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:20:44 (GMT)
commitc32f183f918dcba95b8796ad517084390c47d274 (patch)
tree489441b961061dc9a7b590b6207df0a9db661075
parentbbf6a11e5d726c9a86a1a6ad769119b6c2f7955c (diff)
Only validate remote host settings if capture is enabled
It doesn't make any sense to try to map to a remote host if capture is disabled. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/camorama-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camorama-window.c b/src/camorama-window.c
index b65f4e1..3c5e11e 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -480,7 +480,7 @@ load_interface(cam* cam) {
gtk_combo_box_set_active(GTK_COMBO_BOX(protocol), i);
}
- if (cam->host && cam->proto && cam->rdir) {
+ if (cam->cap && cam->host && cam->proto && cam->rdir) {
cam->uri = volume_uri(cam->host, cam->proto, cam->rdir);
mount_volume(cam);
} else {

Privacy Policy