Bug #674
IconDes "Export Pngs" dosen't respect cancel button
Status: | Approved | Start date: | 01/31/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Zbigniew Rebacz | % Done: | 0% | |
Category: | IconDes | Spent time: | - | |
Target version: | - |
Description
It seems that "Export Pngs" dosen't respect cancel button. It is funny when you cancel operation and yours home directory is full of pngs files :). I enclose patched source file(Pure version). But I would like to explain what I changed with commentary(IconDes::ExportPngs() - line 199):
void IconDes::ExportPngs() { String dir = SelectDirectory(); if(!dir.IsEmpty()) // <- Additional check for(int i = 0; i < GetCount(); i++) PNGEncoder().SaveFile(AppendFileName(dir, GetName(i) + ".png"), GetImage(i)); }
BTW, It is possible to export one certain icon instead of all in IconDes.
History
#1 Updated by Miroslav Fidler over 10 years ago
- Status changed from Patch ready to Approved
- Assignee changed from Miroslav Fidler to Zbigniew Rebacz