Commit e35a8ef3 authored by Langella Olivier's avatar Langella Olivier
Browse files

issue #52 fixed

parent 74dc36c7
......@@ -269,10 +269,10 @@ target_include_directories(xtpcpp PUBLIC
)
if(MXE)
#target_compile_options(
# xtpcpp PRIVATE -mwindows
#)
#set_target_properties(xtpcpp PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
target_compile_options(
xtpcpp PRIVATE -mwindows
)
set_target_properties(xtpcpp PROPERTIES LINK_FLAGS "-Wl,--subsystem,windows ${CMAKE_EXE_LINKER_FLAGS}")
endif(MXE)
target_link_libraries(xtpcpp
......
......@@ -330,9 +330,19 @@ void
PeptideWindow::updateIonMobilityDisplay()
{
qDebug();
pappso::QualifiedMassSpectrum mass_spectrum =
_p_peptide_evidence->getQualifiedMassSpectrum(false);
ui->ion_mobility_form_widget->hide();
ui->ion_mobility_line->hide();
pappso::QualifiedMassSpectrum mass_spectrum;
try
{
mass_spectrum = _p_peptide_evidence->getQualifiedMassSpectrum(false);
}
catch(pappso::ExceptionNotFound &notfound)
{
// mz file not found, we can not get the qualified mass spectrum
return;
}
qDebug();
QVariant ion_mobility_begin = mass_spectrum.getParameterValue(
pappso::QualifiedMassSpectrumParameter::OneOverK0begin);
......@@ -356,12 +366,6 @@ PeptideWindow::updateIonMobilityDisplay()
ui->ion_mobility_begin_value->setText(im_begin_val + " 1/K0");
ui->ion_mobility_end_value->setText(im_end_val + " 1/K0");
}
else
{
qDebug();
ui->ion_mobility_form_widget->hide();
ui->ion_mobility_line->hide();
}
qDebug();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment