diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/displaywindow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c index bb524093..52de25d8 100644 --- a/src/displaywindow.c +++ b/src/displaywindow.c @@ -759,8 +759,7 @@ DisplayWindow *displaywindow_open(const char *filename) if ( dw->hdfile == NULL ) { fprintf(stderr, "Couldn't open file '%s'\n", filename); displaywindow_disable(dw); - } - if ( hdfile_set_image(dw->hdfile, "/data/data") ) { + } else if ( hdfile_set_image(dw->hdfile, "/data/data") ) { fprintf(stderr, "Couldn't select path\n"); displaywindow_disable(dw); } |