#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/convenience.hpp>
namespace fs = boost::filesystem;
#include <boost/bind.hpp>
// try to load safely
try {
fs::path converted_path(path.toStdString(), fs::native);
+ if (fs::extension(converted_path).size() == 0) {
+ // no extension, so add one
+ converted_path = converted_path.string() + ".mtl";
+ }
analysis->save_motifs(converted_path);
default_dir->setPath(converted_path.branch_path().native_directory_string().c_str());
} catch (runtime_error e) {