Commit 4342eab3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix segfault when running slideshow mode with !opt.display

Happens e.g. when using -O without enabling thumbnail/index mode

Closes #335
parent faf94a3a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -73,11 +73,14 @@ int main(int argc, char **argv)
		feh_wm_set_bg_filelist(opt.bgmode);
		exit(0);
	}
	else {
	else if (opt.display){
		/* Slideshow mode is the default. Because it's spiffy */
		opt.slideshow = 1;
		init_slideshow_mode();
	}
	else {
		eprintf("Invalid option combination");
	}

	/* main event loop */
	while (feh_main_iteration(1));