X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Floadfile.C;h=fff3b625c2f8021cf065943c21b8d82fecf57f25;hb=75267dc010a3c3f351a2312469deb5b419fae819;hp=345456d976c996747b79c2852786a5186f816450;hpb=2a56d102d9db53017b306f2a61a2382f29a75783;p=goodguy%2Fcinelerra.git 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;