diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-05-13 18:58:05 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-05-13 18:58:05 +0100 |
commit | 18cfe219fef2aabc1d3260764c02cd3476615176 (patch) | |
tree | 72a06d67e15940a8bb4ac8a159cd7e64065e0fb5 /launcher | |
parent | 129e959a3b0a7d21965b15d6a65b0a9d22994838 (diff) | |
download | PrismLauncher-18cfe219fef2aabc1d3260764c02cd3476615176.tar.gz PrismLauncher-18cfe219fef2aabc1d3260764c02cd3476615176.tar.bz2 PrismLauncher-18cfe219fef2aabc1d3260764c02cd3476615176.zip |
Hopefully This Works™
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/FileIgnoreProxy.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/launcher/FileIgnoreProxy.cpp b/launcher/FileIgnoreProxy.cpp index 4fd1ef91..a3b7d505 100644 --- a/launcher/FileIgnoreProxy.cpp +++ b/launcher/FileIgnoreProxy.cpp @@ -129,12 +129,7 @@ bool FileIgnoreProxy::setData(const QModelIndex& index, const QVariant& value, i QString FileIgnoreProxy::relPath(const QString& path) const { - QString prefix = QDir().absoluteFilePath(root); - prefix += '/'; - if (!path.startsWith(prefix)) { - return QString(); - } - return path.mid(prefix.size()); + return QDir(root).relativeFilePath(path); } bool FileIgnoreProxy::setFilterState(QModelIndex index, Qt::CheckState state) |