Skip to content

Commit

Permalink
Avoid Qt warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 5, 2018
1 parent 7a5f553 commit 050d833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsfilecontentsourcelineedit.cpp
Expand Up @@ -189,7 +189,7 @@ void QgsAbstractFileContentSourceLineEdit::mFileLineEdit_textEdited( const QStri

void QgsAbstractFileContentSourceLineEdit::mFileLineEdit_editingFinished()
{
if ( !QFileInfo::exists( mFileLineEdit->text() ) )
if ( !mFileLineEdit->text().isEmpty() && !QFileInfo::exists( mFileLineEdit->text() ) )
{
QUrl url( mFileLineEdit->text() );
if ( !url.isValid() )
Expand Down

0 comments on commit 050d833

Please sign in to comment.