Commit 3d1461d5 authored by Laurent Montel's avatar Laurent Montel 😁

Make sure that text is not empty

parent f4e9b2dc
......@@ -149,7 +149,7 @@ void InsertImageWidgetPrivate::_k_slotUrlChanged( const QString &text )
preview->clear();
imageRatio = -1;
}
q->enableButtonOk( !text.isEmpty() );
q->enableButtonOk( !text.trimmed().isEmpty() );
}
void InsertImageWidgetPrivate::_k_slotImageWidthChanged( int value )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment