From 6d3a73e4b5478585e31ee6327869ff9f1f5d67fc Mon Sep 17 00:00:00 2001 From: VitorVieiraZ Date: Thu, 25 Apr 2024 09:16:44 -0300 Subject: [PATCH] third part of post review changes --- app/inpututils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/inpututils.cpp b/app/inpututils.cpp index f837427dc..029acb1dd 100644 --- a/app/inpututils.cpp +++ b/app/inpututils.cpp @@ -2160,9 +2160,11 @@ QList 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 ) ) {