Skip to content
Snippets Groups Projects
Commit f7556890 authored by Langella Olivier's avatar Langella Olivier
Browse files

try catch added when building the tandem run dialog

parent a944dac7
No related branches found
No related tags found
No related merge requests found
......@@ -365,17 +365,24 @@ MainWindow::doProjectNotReady(QString error)
void
MainWindow::doActionTandemRun()
{
if(_p_tandem_run_dialog == nullptr)
try
{
if(_p_tandem_run_dialog == nullptr)
{
_p_tandem_run_dialog = new TandemRunDialog(this);
connect(_p_tandem_run_dialog,
&TandemRunDialog::accepted,
this,
&MainWindow::doAcceptedTandemRunDialog);
}
_p_tandem_run_dialog->show();
_p_tandem_run_dialog->raise();
_p_tandem_run_dialog->activateWindow();
}
catch(pappso::PappsoException &error)
{
_p_tandem_run_dialog = new TandemRunDialog(this);
connect(_p_tandem_run_dialog,
&TandemRunDialog::accepted,
this,
&MainWindow::doAcceptedTandemRunDialog);
viewError(tr("Error opening X!Tandem run dialog window :\n%1").arg(error.qwhat()));
}
_p_tandem_run_dialog->show();
_p_tandem_run_dialog->raise();
_p_tandem_run_dialog->activateWindow();
}
void
MainWindow::loadResults()
......
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