mmg: insert »playlist items« entries in the correct position

Fixes #952.
This commit is contained in:
Moritz Bunkus 2013-12-29 00:39:55 +01:00
parent 17562886a6
commit 1ab1e68c8a
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2013-12-29 Moritz Bunkus <moritz@bunkus.org>
* mmgL bug fixL the »playlist items« list box in the »select
playlist file to add« dialog was showing the items in reversed
order. Fixes #952.
2013-12-28 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: the »select playlist file to add« dialog can now

View File

@ -213,6 +213,7 @@ select_scanned_file_dlg::update_info() {
for (auto &file : playlist.files) {
auto id = m_lc_items->InsertItem(idx, wxFileName{file}.GetFullName());
m_lc_items->SetItem(id, 1, wxFileName{file}.GetPath());
++idx;
}
m_lc_items->SetColumnWidth(0, wxLIST_AUTOSIZE);