https://bugs.kde.org/show_bug.cgi?id=468906

--- Comment #12 from Jean-Baptiste Mardelle <[email protected]> ---
Some more details on what happens on Windows:
The bug is in KFileWidget's slotOk(). If the user enters "F:" (without quotes -
any drive letter will crash) in the name field, 
the url is set to QUrl("file:///F:") in [1]
Then , in [2] we create a QUrl directory from url by removing the filename, and
end up with directory = QUrl("file:///")
The stat job in [3] thinks it is a dir, and the url is set to QUrl("file:///")
and the fileName to "F:"
Finally, in [4] we set back the name field to fileName (so "F:") and relaunch
slotOk(), creating an endless loop

[1]
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp#L742
[2]
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp#L758
[3]
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp#L767
[4]
https://invent.kde.org/frameworks/kio/-/blob/master/src/filewidgets/kfilewidget.cpp#L773

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to