[Bug 1298346] Re: Non-unique names get ($number) added before the first dot instead of the last one

2016-04-19 Thread Giuseppe Giacalone
Downloading on a BQ Aquaris Ubuntu Touch the OpenStore_0.96_armhf.click file from this site (https://open.uappexplorer.com/docs#install), and downloading it a second time, the file in the Downloads folder is called OpenStore_0.1.96_armhf.click -- You received this bug notification because you are

[Bug 1298346] Re: Non-unique names get ($number) added before the first dot instead of the last one

2016-04-19 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: ubuntu-download-manager (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1298

[Bug 1298346] Re: Non-unique names get ($number) added before the first dot instead of the last one

2016-04-19 Thread Riccardo Padovani
The problem is in `FileNameMutex::lockFileName()` which uses fileInfo.completeSuffix()[0] to understand where put the number, which returns all letters that are at right of the first dot. Now, this makes sense, because we do not want to break the file (so we do not want to append the number) but a