Hopefully This Works™
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
129e959a3b
commit
18cfe219fe
@ -129,12 +129,7 @@ bool FileIgnoreProxy::setData(const QModelIndex& index, const QVariant& value, i
|
|||||||
|
|
||||||
QString FileIgnoreProxy::relPath(const QString& path) const
|
QString FileIgnoreProxy::relPath(const QString& path) const
|
||||||
{
|
{
|
||||||
QString prefix = QDir().absoluteFilePath(root);
|
return QDir(root).relativeFilePath(path);
|
||||||
prefix += '/';
|
|
||||||
if (!path.startsWith(prefix)) {
|
|
||||||
return QString();
|
|
||||||
}
|
|
||||||
return path.mid(prefix.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileIgnoreProxy::setFilterState(QModelIndex index, Qt::CheckState state)
|
bool FileIgnoreProxy::setFilterState(QModelIndex index, Qt::CheckState state)
|
||||||
|
Loading…
Reference in New Issue
Block a user