{
this->mwindow = mwindow;
this->mainmenu = mainmenu;
+ this->thread = 0;
}
Load::~Load()
{
this->mwindow = mwindow;
this->load = load;
+ this->window = 0;
}
LoadFileThread::~LoadFileThread()
LoadMode::calculate_h(this, mwindow->theme);
loadmode->reposition_window(x, y);
- x = (get_w() - BC_GenericButton::calculate_w(this, _("Apply")))/2;
- y = get_h() - BC_GenericButton::calculate_h() - 15;
+ x = (w - BC_GenericButton::calculate_w(this, _("Apply")))/2;
+ y = h - BC_GenericButton::calculate_h() - 15;
load_file_apply->reposition_window(x, y);
return BC_FileBox::resize_event(w, h);
LoadPrevious::LoadPrevious(MWindow *mwindow, Load *loadfile)
- : BC_MenuItem(""), Thread()
+ : BC_MenuItem("")
{
this->mwindow = mwindow;
this->loadfile = loadfile;
int LoadPrevious::handle_event()
{
+ if( !path[0] ) return 1;
ArrayList<char*> path_list;
path_list.set_array_delete();
char *out_path;
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;