Don't require Qt 5.8.0
This commit is contained in:
parent
bdb05ae865
commit
1f6555a718
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue