Skip to content
Permalink
Browse files

Avoid Qt warnings

  • Loading branch information
nyalldawson committed Dec 5, 2018
1 parent 7a5f553 commit 050d833540e575fa49f2eac1be830040b8e2b9b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsfilecontentsourcelineedit.cpp
@@ -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() )

0 comments on commit 050d833

Please sign in to comment.
You can’t perform that action at this time.