From 6d28a1b645251070f7a078dd851adf4dc5f517e2 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Wed, 28 Oct 2015 13:24:57 +0100 Subject: [PATCH] Fix Qt4 compilation --- src/libsync/discoveryphase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp index 13e7f2c31..d345af84d 100644 --- a/src/libsync/discoveryphase.cpp +++ b/src/libsync/discoveryphase.cpp @@ -321,7 +321,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file,QMap QStringRef fileRef(&file); int slashPos = file.lastIndexOf(QLatin1Char('/')); if( slashPos > -1 ) { - fileRef = fileRef.mid(slashPos+1); + fileRef = file.midRef(slashPos+1); } if( fileRef.startsWith(QChar('.')) ) { file_stat->flags = CSYNC_VIO_FILE_FLAGS_HIDDEN;