Commit 70c042d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

QString::split(..., Qt::SplitBehavior, ...) is already in Qt 5.14

parent 7cb32352
Pipeline #47743 passed with stage
in 32 minutes and 28 seconds
......@@ -57,11 +57,7 @@ void SnippetAttachmentWidget::clear()
void SnippetAttachmentWidget::slotSelectAttachment()
{
QPointer<MailCommon::SnippetSelectAttachmentDialog> dlg = new MailCommon::SnippetSelectAttachmentDialog(this);
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
dlg->setAttachments(mLineEdit->text().split(QLatin1Char(','), QString::SkipEmptyParts));
#else
dlg->setAttachments(mLineEdit->text().split(QLatin1Char(','), Qt::SkipEmptyParts));
#endif
if (dlg->exec()) {
mLineEdit->setText(dlg->attachments().join(QLatin1Char(',')));
Q_EMIT wasChanged();
......
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