Don't require Qt 5.8.0

This commit is contained in:
Marius Kittler 2017-02-23 15:07:47 +01:00
parent bdb05ae865
commit 1f6555a718
1 changed files with 4 additions and 0 deletions

View File

@ -120,7 +120,11 @@ QList<QAction *> SyncthingFileItemAction::actions(const KFileItemListProperties
for(const SyncthingDir &dir : dirs) {
QStringRef dirPath(&dir.path);
while(dirPath.endsWith(QChar('/'))) {
#if QT_VERSION_MAJOR >= 5 && QT_VERSION_MINOR >= 8
dirPath.chop(1);
#else
dirPath = dirPath.left(dirPath.size() - 1);
#endif
}
for(const QString &path : paths) {
if(path == dirPath) {