From 43c78ead77acd63fd58a86e06fef87622a527af4 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Wed, 24 Apr 2013 13:24:17 +0200 Subject: [PATCH] CInfoViewer::showInfoFile -check file size Signed-off-by: Jacek Jendrzej Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6d088357c3093bd34c2128e2070088948d212643 Author: Jacek Jendrzej Date: 2013-04-24 (Wed, 24 Apr 2013) ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 08d730f8f..b0fbbb153 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1817,7 +1817,7 @@ void CInfoViewer::showInfoFile() std::string infobar_file = "/tmp/infobar.txt"; //exit if file not found, don't create an info object, delete old instance if required - if (!file_exists(infobar_file.c_str())) { + if (!file_size(infobar_file.c_str())) { if (infobar_txt) delete infobar_txt; infobar_txt = NULL;