Skip to content

Commit

Permalink
Fixed file lib file path save error
Browse files Browse the repository at this point in the history
  • Loading branch information
calebbuahin committed Jul 27, 2019
1 parent 4fd95fe commit 8f8812f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions HydroCoupleComposer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#License GNU Lesser General Public License (see <http: //www.gnu.org/licenses/> for details).
TEMPLATE = app
VERSION_MAJOR = 1
VERSION_MINOR = 2
VERSION_BUILD = 4
VERSION_MINOR = 4
VERSION_BUILD = 0
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_BUILD}
TARGET = HydroCoupleComposer
QT += core widgets gui printsupport concurrent opengl xml
Expand Down
4 changes: 2 additions & 2 deletions src/gmodelcomponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ void GModelComponent::writeComponent(const QFileInfo &fileInfo)
{
// if(m_readFromFile)
// {
relPath = m_project->projectFile().dir().absoluteFilePath(libFile.filePath());
relPath = libFile.absoluteFilePath();
// relPath = fileInfo.dir().relativeFilePath(relPath);
// }
// else
Expand All @@ -717,7 +717,7 @@ void GModelComponent::writeComponent(const QFileInfo &fileInfo)
else
{
// relPath = fileInfo.dir().relativeFilePath(libFile.absoluteFilePath());
relPath = fileInfo.absoluteFilePath();
relPath = libFile.absoluteFilePath();
}

xmlWriter.writeAttribute("Name", m_modelComponent->componentInfo()->id());
Expand Down
8 changes: 4 additions & 4 deletions src/hydrocouplecomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3877,11 +3877,11 @@ void HydroCoupleComposer::onAbout()
"<h3 align=\"center\">HydroCouple Composer "+version+"</h3>"
"<hr>"
"<p>Build Date: " + buildDateTime + "</p>"
"<p align=\"center\">Copyright 2014-"+ buildYear +". The HydroCouple Organization. All rights reserved.</p>"
"<p align=\"center\">This program and its associated libraries is provided AS IS with NO WARRANTY OF ANY KIND, "
"<p align=\"justify\">Copyright 2014-"+ buildYear +". The HydroCouple Organization. All rights reserved.</p>"
"<p align=\"justify\">This program and its associated libraries is provided AS IS with NO WARRANTY OF ANY KIND, "
"INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.</p>"
"<p align=\"center\"><a href=\"mailto:[email protected]?Subject=HydroCouple Composer\">[email protected]</a></p>"
"<p align=\"center\"><a href=\"www.hydrocouple.org\">www.hydrocouple.org</a></p>"
"<p align=\"justify\"><a href=\"mailto:[email protected]?Subject=HydroCouple Composer\">[email protected]</a></p>"
"<p align=\"justify\"><a href=\"www.hydrocouple.org\">www.hydrocouple.org</a></p>"
"</body>"
"</html>");
}
Expand Down

0 comments on commit 8f8812f

Please sign in to comment.