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

warning message return check

parent 3693531e
No related branches found
No related tags found
No related merge requests found
......@@ -681,15 +681,18 @@ MainWindow::doCheckNewVersion()
{
hideWaitingMessage();
QMessageBox::warning(
int ret = QMessageBox::warning(
this,
tr("new version available"),
tr("a new %1 version is available %2\nchek our web site "
"http://pappso.inra.fr/bioinfo/xtandempipeline to download it")
tr("A new %1 version is available %2\nCheck our web site \n"
"http://pappso.inra.fr/bioinfo/xtandempipeline\n to download it")
.arg(SOFTWARE_NAME)
.arg(m_onlineVersion.getVersion()));
QDesktopServices::openUrl(
QUrl("http://pappso.inra.fr/bioinfo/xtandempipeline"));
if(ret == QMessageBox::Ok)
{
QDesktopServices::openUrl(
QUrl("http://pappso.inra.fr/bioinfo/xtandempipeline"));
}
}
qDebug() << __FILE__ << " " << __FUNCTION__ << " " << __LINE__;
......
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