Commit 270f2487 authored by Alexander Kuznetsov's avatar Alexander Kuznetsov Committed by Nicolas Fella
Browse files

[activities] Fix showing associated files

BUG: 453110
(cherry picked from commit a1f96106)
parent b3905584
Pipeline #269979 passed with stage
in 8 minutes and 46 seconds
......@@ -57,8 +57,8 @@ public:
const auto fullPath = url.adjusted(QUrl::StripTrailingSlash).path();
const auto path = QStringView(fullPath).mid(fullPath.startsWith(QLatin1Char('/')) ? 1 : 0);
if (activity) {
*activity = path.mid(0, path.indexOf(QStringLiteral("/")) - 1).toString();
if (activity && !path.isEmpty()) {
*activity = path.mid(0, path.indexOf(QStringLiteral("/"))).toString();
}
if (filePath) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment