Skip to content

Commit

Permalink
Update src/gui/qgsfilewidget.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 20, 2021
1 parent 7d49b66 commit c88ea90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfilewidget.cpp
Expand Up @@ -281,7 +281,7 @@ void QgsFileWidget::openFileDialog()

// if we use a relative path option, we need to obtain the full path
// first choice is the current file path, if one is entered
if ( !mFilePath.isEmpty() && QFile( mFilePath ).exists() )
if ( !mFilePath.isEmpty() && QFile::exists( mFilePath ) )
{
oldPath = relativePath( mFilePath, false );
}
Expand Down

0 comments on commit c88ea90

Please sign in to comment.