Skip to content

Commit

Permalink
Refs #6315 and #6936. Fixing version number assembly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Apr 26, 2013
1 parent 258c753 commit 3be48cc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Code/Mantid/MantidPlot/src/Mantid/SetUpParaview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,13 @@ SetUpParaview::SetUpParaview(StartUpFrom from, QWidget *parent) : QDialog(parent

initLayout();

const QString versionRevision = QString::fromStdString(Mantid::Kernel::ParaViewVersion::targetVersion());
const QString versionRevisionModification = versionRevision + ".1"; // No way to get this minor version info from paraview.
const QString predictedLocation = QString("C:/Program Files (x86)/ParaView %1/bin").arg(versionRevisionModification);
QString versionRevision = QString::fromStdString(Mantid::Kernel::ParaViewVersion::targetVersion());
if (!versionRevision.contains("3.98"))
{
// For ParaView 3.10, minor version number is not available
versionRevision.append(".1");
}
const QString predictedLocation = QString("C:/Program Files (x86)/ParaView %1/bin").arg(versionRevision);
const QString hintText = QString("Hint: the usual install location for ParaView is: %1").arg(predictedLocation);
m_uiForm.lblHint->setText(hintText);

Expand Down

0 comments on commit 3be48cc

Please sign in to comment.