git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2071
1f10aa63-cdf2-0310-b900-
c93c546f37ac
#include <gtkmm/button.h>
#include "widget_filename.h"
#include "app.h"
+#include "canvasview.h"
#include "general.h"
string filename=entry_filename->get_text();
if(filename.empty())
filename=".";
+ else
+ filename = etl::absolute_path(
+ etl::dirname(App::get_selected_canvas_view()->get_canvas()->get_file_name()) +
+ ETL_DIRECTORY_SEPARATOR +
+ filename);
if(App::dialog_open_file(_("Choose File"), filename, MISC_DIR_PREFERENCE))
entry_filename->set_text(filename);
}