View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002498 | Far Manager | Filters | public | 2013-09-24 10:15 | 2013-09-24 21:09 |
| Reporter | Denis | Assigned To | DrKnS | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.0 | ||||
| Fixed in Version | 3.0 | ||||
| Summary | 0002498: Невозможность отключить фильтр, если среди расширений были похоже, но в разном регистре | ||||
| Description | Например, если были файлы след. расширений, то фильтр для вторых нельзя отключить: *.Resources *.res Fix: diff --git i/unicode_far/filefilter.cpp w/unicode_far/filefilter.cpp index bdce212..f4f6c34 100644 --- i/unicode_far/filefilter.cpp +++ w/unicode_far/filefilter.cpp @@ -183,7 +183,10 @@ bool FileFilter::FilterEdit() break; } - Extensions.sort(); + Extensions.sort([](const std::pair<string, int>& a, const std::pair<string, int>& b) + { + return StrCmpI(a.first.data(),b.first.data()) < 0; + }); wchar_t h = L'1'; for (auto i = Extensions.begin(); i != Extensions.end(); ++i, (h == L'9'? h = L'A' : (h == L'Z' || h? h++ : h=0))) | ||||
| Tags | No tags attached. | ||||
| Build | 3682 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2013-09-24 10:15 | Denis | New Issue | |
| 2013-09-24 19:40 | Denis | Note Added: 0011454 | |
| 2013-09-24 21:09 | DrKnS | Build | => 3682 |
| 2013-09-24 21:09 | DrKnS | Status | new => closed |
| 2013-09-24 21:09 | DrKnS | Assigned To | => DrKnS |
| 2013-09-24 21:09 | DrKnS | Resolution | open => fixed |
| 2013-09-24 21:09 | DrKnS | Fixed in Version | => 3.0 |