vlc | branch: master | Abel Tesfaye <[email protected]> | Fri Jun 14 18:44:46 2019 +0300| [a8c927f7c792f5b03e8ea151440bc559fa2ca999] | committer: Hugo Beauzée-Luyssen
qt: fix missing return value in ChapterModel Signed-off-by: Hugo Beauzée-Luyssen <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8c927f7c792f5b03e8ea151440bc559fa2ca999 --- modules/gui/qt/util/input_models.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/gui/qt/util/input_models.cpp b/modules/gui/qt/util/input_models.cpp index 918f93193d..80e8b444ee 100644 --- a/modules/gui/qt/util/input_models.cpp +++ b/modules/gui/qt/util/input_models.cpp @@ -346,8 +346,7 @@ void ChapterListModel::resetTitle(const vlc_player_title *newTitle) QString ChapterListModel::getNameAtPosition(float pos) const { - if(m_title == nullptr) - return qtr("nothing found"); + if(m_title != nullptr){ vlc_tick_t posTime = pos * m_title->length; int prevChapterIndex = 0; @@ -364,6 +363,8 @@ QString ChapterListModel::getNameAtPosition(float pos) const prevChapterIndex = i; } + } + return QString(); } //*************************** _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
