X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Floadfile.C;h=fff3b625c2f8021cf065943c21b8d82fecf57f25;hp=345456d976c996747b79c2852786a5186f816450;hb=44f0242e0f313fd1b49675c697629b73dc260d21;hpb=075cbf87b7e1d1eb484ea9185490d898c664b77f diff --git a/cinelerra-5.1/cinelerra/loadfile.C b/cinelerra-5.1/cinelerra/loadfile.C index 345456d9..fff3b625 100644 --- a/cinelerra-5.1/cinelerra/loadfile.C +++ b/cinelerra-5.1/cinelerra/loadfile.C @@ -251,7 +251,7 @@ LocateFileWindow::~LocateFileWindow() LoadPrevious::LoadPrevious(MWindow *mwindow, Load *loadfile) - : BC_MenuItem(""), Thread() + : BC_MenuItem("") { this->mwindow = mwindow; this->loadfile = loadfile; @@ -259,6 +259,7 @@ LoadPrevious::LoadPrevious(MWindow *mwindow, Load *loadfile) int LoadPrevious::handle_event() { + if( !path[0] ) return 1; ArrayList path_list; path_list.set_array_delete(); char *out_path; @@ -277,14 +278,7 @@ int LoadPrevious::handle_event() return 1; } - - -void LoadPrevious::run() -{ -// loadfile->mwindow->load(path, loadfile->append); -} - -int LoadPrevious::set_path(char *path) +int LoadPrevious::set_path(const char *path) { strcpy(this->path, path); return 0;