clean up use of open_file_dialog() modified API

This commit is contained in:
Paul Davis 2014-09-03 13:07:47 -04:00
parent 637f3e9c2d
commit 522a00ed52

View file

@ -1408,18 +1408,7 @@ ARDOUR_UI::open_session ()
}
string session_path = "";
#ifdef __APPLE__
session_path = ARDOUR::open_file_dialog(Config->get_default_session_parent_dir(), _("Select Saved Session"));
#endif
#ifdef _WIN32
// Open the file save dialog, and choose the file name
string fileName;
if (open_file_dialog(fileName, Config->get_default_session_parent_dir(), _("Select Saved Session"))) {
session_path = fileName;
}
#endif
// cancel was pressed
if(session_path == "")