Skip to content

Commit 050d833

Browse files
committedDec 5, 2018
Avoid Qt warnings
1 parent 7a5f553 commit 050d833

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsfilecontentsourcelineedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void QgsAbstractFileContentSourceLineEdit::mFileLineEdit_textEdited( const QStri
189189

190190
void QgsAbstractFileContentSourceLineEdit::mFileLineEdit_editingFinished()
191191
{
192-
if ( !QFileInfo::exists( mFileLineEdit->text() ) )
192+
if ( !mFileLineEdit->text().isEmpty() && !QFileInfo::exists( mFileLineEdit->text() ) )
193193
{
194194
QUrl url( mFileLineEdit->text() );
195195
if ( !url.isValid() )

0 commit comments

Comments
 (0)
Please sign in to comment.