From 7b6ef6332e1b0e032390fbe176653e4adf2dbcb1 Mon Sep 17 00:00:00 2001 From: martii Date: Thu, 19 Jun 2014 07:26:31 +0200 Subject: [PATCH] gui/movieinfo: don't show epgInfo2 if it equals epgInfo1 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/14ea66b8f124d04400aafa941457b4afa9d1f71f Author: martii Date: 2014-06-19 (Thu, 19 Jun 2014) --- src/gui/movieinfo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/movieinfo.cpp b/src/gui/movieinfo.cpp index d5b3e05b1..5f643a6f1 100644 --- a/src/gui/movieinfo.cpp +++ b/src/gui/movieinfo.cpp @@ -397,8 +397,10 @@ void CMovieInfo::showMovieInfo(MI_MOVIE_INFO & movie_info) { std::string print_buffer = movie_info.epgInfo1; print_buffer += "\n"; - print_buffer += movie_info.epgInfo2; - print_buffer += "\n"; + if (movie_info.epgInfo1 != movie_info.epgInfo2) { + print_buffer += movie_info.epgInfo2; + print_buffer += "\n"; + } if ( !movie_info.productionCountry.empty() || movie_info.productionDate != 0) { print_buffer += movie_info.productionCountry;