add a manually updated version number.
[mussa.git] / qui / MussaWindow.cpp
index 36727a1635dd617670561688798bd5d789e0d855..2ab6299d925ac36226d56a69593b6bb13c8005e9 100644 (file)
@@ -1,6 +1,7 @@
 #include "py/python.hpp"
 #include "qui/MussaWindow.hpp"
 #include "mussa_exceptions.hpp"
+#include "version.hpp"
 
 #include <QAction>
 #include <QApplication>
@@ -24,6 +25,7 @@
 
 #include <boost/filesystem/path.hpp>
 #include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/convenience.hpp>
 namespace fs = boost::filesystem;
 #include <boost/bind.hpp>
 
@@ -283,14 +285,17 @@ void MussaWindow::setupAssistant()
   
 void MussaWindow::about()
 {
-  QString msg("Welcome to Multiple Species Sequence Analysis\n"
-              "(c) 2005-2006 California Institute of Technology\n"
-              "Tristan De Buysscher, Diane Trout\n");
-   msg += "\n\r";
-   msg += "OpenGL: ";
-   msg += (char *)glGetString(GL_VERSION);
-   msg += "\n";
-   QMessageBox::about(this, tr("About mussa"), msg);
+  QString msg;
+  msg += "Welcome to Multiple Species Sequence Analysis\n";
+  msg += "(c) 2005-2006 California Institute of Technology\n";
+  msg += "Diane Trout, Tristan De Buysscher, Brandon King\n";
+  msg += "Version: ";
+  msg += mussa_version;
+  msg += "\n";
+  msg += "OpenGL: ";
+  msg += (char *)glGetString(GL_VERSION);
+  msg += "\n";
+  QMessageBox::about(this, tr("About mussa"), msg);
 }
 
 void MussaWindow::clear()
@@ -465,6 +470,10 @@ void MussaWindow::saveMotifList()
   // 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) {