aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-05-13 18:58:05 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-05-13 18:58:05 +0100
commit18cfe219fef2aabc1d3260764c02cd3476615176 (patch)
tree72a06d67e15940a8bb4ac8a159cd7e64065e0fb5 /launcher
parent129e959a3b0a7d21965b15d6a65b0a9d22994838 (diff)
downloadPrismLauncher-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.cpp7
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)