gui/movieplayer.cpp: do not quit or jump to unmarked item, in case ie empty dir added

This commit is contained in:
[CST] Focus
2014-09-30 13:43:48 +04:00
parent ee9d08a3ee
commit c14ab10c2e

View File

@@ -516,9 +516,9 @@ bool CMoviePlayerGui::SelectFile()
EnableClockAndMute(true); EnableClockAndMute(true);
} else { // filebrowser } else { // filebrowser
EnableClockAndMute(false); EnableClockAndMute(false);
if (filebrowser->exec(Path_local.c_str()) == true) { while (ret == false && filebrowser->exec(Path_local.c_str()) == true) {
Path_local = filebrowser->getCurrentDir(); Path_local = filebrowser->getCurrentDir();
CFile *file = filebrowser->getSelectedFile(); CFile *file = NULL;
filelist = filebrowser->getSelectedFiles(); filelist = filebrowser->getSelectedFiles();
filelist_it = filelist.end(); filelist_it = filelist.end();
if (filelist.size() > 0) { if (filelist.size() > 0) {
@@ -529,8 +529,8 @@ bool CMoviePlayerGui::SelectFile()
is_file_player = true; is_file_player = true;
ret = prepareFile(file); ret = prepareFile(file);
} }
} else }
menu_ret = filebrowser->getMenuRet(); menu_ret = filebrowser->getMenuRet();
EnableClockAndMute(true); EnableClockAndMute(true);
} }
g_settings.network_nfs_moviedir = Path_local; g_settings.network_nfs_moviedir = Path_local;