Commit 9ee0a363 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated QString::SkipEmptyParts flag

parent 4793f94d
...@@ -252,7 +252,11 @@ QModelIndex FolderViewContextManagerItem::findClosestIndex(const QModelIndex& pa ...@@ -252,7 +252,11 @@ QModelIndex FolderViewContextManagerItem::findClosestIndex(const QModelIndex& pa
QString relativePath = QDir(url.path()).relativeFilePath(wantedUrl.path()); QString relativePath = QDir(url.path()).relativeFilePath(wantedUrl.path());
QModelIndex lastFoundIndex = index; QModelIndex lastFoundIndex = index;
#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0)
const QStringList relativePathList = relativePath.split(QDir::separator(), Qt::SkipEmptyParts);
#else
const QStringList relativePathList = relativePath.split(QDir::separator(), QString::SkipEmptyParts); const QStringList relativePathList = relativePath.split(QDir::separator(), QString::SkipEmptyParts);
#endif
for (const QString & pathPart : relativePathList) { for (const QString & pathPart : relativePathList) {
bool found = false; bool found = false;
for (int row = 0; row < mModel->rowCount(lastFoundIndex); ++row) { for (int row = 0; row < mModel->rowCount(lastFoundIndex); ++row) {
......
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