Skip to content
Snippets Groups Projects
Commit e022f7a4 authored by Renne Thomas's avatar Renne Thomas
Browse files

Merge branch 'master' of forgemia.inra.fr:pappso/xtpcpp into renne

parents 4b55b86f f7556890
No related branches found
No related tags found
1 merge request!24Renne
......@@ -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