Skip to content

Commit

Permalink
Fix performance profiling for info.json files
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24319 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jan 29, 2015
1 parent 17a0ef3 commit a8f724f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -438,12 +438,12 @@ EquationTreeWidget::EquationTreeWidget(TransformationsWidget *pTransformationWid
TransformationsWidget::TransformationsWidget(QString infoXMLFullFileName, MainWindow *pMainWindow)
: mpMainWindow(pMainWindow), mInfoXMLFullFileName(infoXMLFullFileName)
{
if (!mInfoXMLFullFileName.endsWith("_info.xml")) {
if (!mInfoXMLFullFileName.endsWith("_info.json")) {
mProfJSONFullFileName = "";
mProfilingDataRealFileName = "";
} else {
mProfJSONFullFileName = infoXMLFullFileName.left(infoXMLFullFileName.size() - 8) + "prof.json";
mProfilingDataRealFileName = infoXMLFullFileName.left(infoXMLFullFileName.size() - 8) + "prof.realdata";
mProfJSONFullFileName = infoXMLFullFileName.left(infoXMLFullFileName.size() - 9) + "prof.json";
mProfilingDataRealFileName = infoXMLFullFileName.left(infoXMLFullFileName.size() - 9) + "prof.realdata";
}
setWindowIcon(QIcon(":/Resources/icons/debugger.svg"));
setWindowTitle(QString(Helper::applicationName).append(" - ").append(Helper::transformationalDebugger));
Expand Down

0 comments on commit a8f724f

Please sign in to comment.