fixed an issue where d'n'd was broken with qt 5.15 or osx >= 10.15 if QMimeData::setUrls was filled with empty urls

preferencesAboutTextFull
Clément Fauconnier 4 years ago
parent 7728d67f8f
commit 3923b33531
  1. 7
      src/document/UBDocumentController.cpp

@ -661,7 +661,14 @@ QMimeData *UBDocumentTreeModel::mimeData (const QModelIndexList &indexes) const
} }
} }
#if defined(Q_OS_OSX)
#if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
if (QOperatingSystemVersion::current().minorVersion() < 15) /* < Mojave */
mimeData->setUrls(urlList);
#endif
#else
mimeData->setUrls(urlList); mimeData->setUrls(urlList);
#endif
mimeData->setIndexes(indexList); mimeData->setIndexes(indexList);
return mimeData; return mimeData;

Loading…
Cancel
Save