forked from pool/slade
Jan Engelhardt
09f5d2a9ce
Everything fixed up as suggested. Hope this is satisfactory. OBS-URL: https://build.opensuse.org/request/show/447091 OBS-URL: https://build.opensuse.org/package/show/games:tools/slade?expand=0&rev=2
18 lines
729 B
Diff
18 lines
729 B
Diff
diff --git a/src/UI/Lists/ArchiveEntryList.cpp b/src/UI/Lists/ArchiveEntryList.cpp
|
|
index 4c1ad82..e7cbe1c 100644
|
|
--- a/src/UI/Lists/ArchiveEntryList.cpp
|
|
+++ b/src/UI/Lists/ArchiveEntryList.cpp
|
|
@@ -581,8 +581,10 @@ bool ArchiveEntryList::entrySort(long left, long right)
|
|
result = 0;
|
|
|
|
// Name sort
|
|
- else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn())
|
|
- result = le->getName().CompareTo(re->getName(), string::ignoreCase);
|
|
+ else if (ael_current->col_name >= 0 && ael_current->col_name == lv_current->sortColumn()) {
|
|
+ const wxChar* reName = re->getName().c_str();
|
|
+ result = le->getName().CompareTo(reName, string::ignoreCase);
|
|
+ }
|
|
|
|
// Other (default) sort
|
|
else
|