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 13521c0 commit 6d3a73e
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 6d3a73e

Please sign in to comment.