Skip to content
Snippets Groups Projects
Commit b0a021b6 authored by Langella Olivier's avatar Langella Olivier
Browse files
parents ed1dad0c d048fbd1
No related branches found
No related tags found
No related merge requests found
......@@ -13,3 +13,5 @@ override_dh_auto_configure:
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(DESTDIR)
......@@ -103,7 +103,11 @@ void EditTandemPresetDialog::doSelectDir() {
QString directory = QFileDialog::getExistingDirectory(this,tr("Choose preset directory"),_preset_directory );
QFileInfo my_dir(directory);
if (!directory.isEmpty() && ! directory.isNull()) {
if (!my_dir.isWritable()) {
throw pappso::PappsoException(QObject::tr("this directory is not writable, check permissions (%1)").arg(my_dir.absoluteFilePath()));
}
_preset_directory = directory;
fillPresetComboBox();
}
......
......@@ -79,11 +79,11 @@ bool XtandemSaxHandler::startElement(const QString & namespaceURI, const QString
_current_text.clear();
}
catch (pappso::PappsoException exception_pappso) {
catch (pappso::PappsoException & exception_pappso) {
_errorStr = QObject::tr("ERROR in XtandemSaxHandler::startElement tag %1, PAPPSO exception:\n%2").arg(qName).arg(exception_pappso.qwhat());
return false;
}
catch (std::exception exception_std) {
catch (std::exception & exception_std) {
_errorStr = QObject::tr("ERROR in XtandemSaxHandler::startElement tag %1, std exception:\n%2").arg(qName).arg(exception_std.what());
return false;
}
......@@ -108,11 +108,11 @@ bool XtandemSaxHandler::endElement(const QString & namespaceURI, const QString &
// else if ((_tag_stack.size() > 1) &&
// (_tag_stack[_tag_stack.size() - 2] == "detection_moulon"))
}
catch (pappso::PappsoException exception_pappso) {
catch (pappso::PappsoException & exception_pappso) {
_errorStr = QObject::tr("ERROR in XtandemSaxHandler::endElement tag %1, PAPPSO exception:\n%2").arg(qName).arg(exception_pappso.qwhat());
return false;
}
catch (std::exception exception_std) {
catch (std::exception & exception_std) {
_errorStr = QObject::tr("ERROR in XtandemSaxHandler::endElement tag %1, std exception:\n%2").arg(qName).arg(exception_std.what());
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment