https://bugs.kde.org/show_bug.cgi?id=377411
Bug ID: 377411
Summary: Created Items Are Not Selected In Parent Folder
Product: dolphin
Version: 16.12.0
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
This is about dolphin-16.12.2-1 in Arch.
Created items are selected correctly at first. However, after going up from a
folder to its parent, created items aren't selected in the parent folder
anymore.
I played with the code and found the cause. After going up, for some reason
unknown to me, the url argument of "DolphinView::observeCreatedItem(const QUrl&
url)" gets a double slash before its last part, like this:
QUrl("file:///home/pedram/Documents//Text File")
The issue can be fixed (worked around) by using "QUrl::adjusted()", like this:
void DolphinView::observeCreatedItem(const QUrl& url)
{
if (m_active) {
QUrl realUrl = url.adjusted(QUrl::NormalizePathSegments);
clearSelection();
markUrlAsCurrent(realUrl);
markUrlsAsSelected({realUrl});
}
}
--
You are receiving this mail because:
You are watching all bug changes.