-#include "py/python.hpp"
#include "qui/MussaWindow.hpp"
#include "mussa_exceptions.hpp"
#include "version.hpp"
#include <QApplication>
#include <QAssistantClient>
#include <QCloseEvent>
+#include <QDesktopServices>
#include <QDir>
#include <QFileDialog>
#include <QHBoxLayout>
#include <QStatusBar>
#include <QString>
#include <QStringList>
+#include <QUrl>
#include <QWhatsThis>
#include <memory>
QMessageBox::NoButton);
}
#else
- try {
- boost::python::object webopen = get_py()["webbrowser.open"];
- webopen("http://woldlab.caltech.edu/~king/mussagl_manual/");
- } catch( boost::python::error_already_set ) {
- PyErr_Print();
+ QUrl manual_url("http://woldlab.caltech.edu/~king/mussagl_manual/");
+ if (not QDesktopServices::openUrl(manual_url)) {
QMessageBox::warning(this,
tr("Mussa Help Error"),
tr("Unable to launch webbrowser"),