https://bugs.kde.org/show_bug.cgi?id=157040
--- Comment #10 from Ahmad Samir <a.samir...@gmail.com> ---
I tinkered with this a bit, in KNewFileMenu itself (if it worked I would then
modify KFileUtils::suggestName). The problem is if the stat job is async, it's
too late as it gets a result _after_ the new folder dialog has already shown up
with "New Folder".

Using exec() seems to work but I found this comment from the original
KIO::suggestName()
https://cgit.kde.org/kio.git/commit/?id=65010677ff357bbbd48863a3359ca9f990570267:
// TODO: network transparency. However, using NetAccess from a modal dialog
// could be a problem, no? (given that it uses a modal widget itself....)

IIUC, it's talking about it starting an event loop (NetAccess is synchronous),
which is what exec() would do, which is a source of crashes...

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

Reply via email to