Skip to content

Commit

Permalink
third part of post review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Apr 25, 2024
1 parent c62a9b9 commit a054678
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/inpututils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2160,9 +2160,11 @@ QList<QgsPoint> InputUtils::parsePositionUpdates( const QString &data )

bool InputUtils::openLink( const QString &homePath, const QString &link )
{
if ( link.startsWith( "project://" ) )
QString LOCAL_FILE_PREFIX = "project://";

if ( link.startsWith( LOCAL_FILE_PREFIX ) )
{
QString relativePath = link.mid( QString( "project://" ).length() );
QString relativePath = link.mid( QString( LOCAL_FILE_PREFIX ).length() );
QString absoluteLinkPath = homePath + QDir::separator() + relativePath;
if ( !fileExists( absoluteLinkPath ) )
{
Expand Down

0 comments on commit a054678

Please sign in to comment.