# # # patch "guitone/res/i18n/guitone_de.ts" # from [0090ee413bc3121c1c61527f988875e8819c0bad] # to [cd01f4ad90ac9d24ae030cffd9c4b6d3f3367aeb] # # patch "guitone/src/view/InventoryView.cpp" # from [27e07088435877b4e878e494a1326a2293d40e7a] # to [e4be7c3162cf3f29de547bf6bf00fcc028b9c224] # ============================================================ --- guitone/res/i18n/guitone_de.ts 0090ee413bc3121c1c61527f988875e8819c0bad +++ guitone/res/i18n/guitone_de.ts cd01f4ad90ac9d24ae030cffd9c4b6d3f3367aeb @@ -757,17 +757,17 @@ In Standardprogramm öffnen - + Error Fehler - + The file you're trying to open does not exist. Die Datei, die Sie versucht haben zu öffnen, existiert nicht. - + Unable to open files on your platform - please contact the author about this problem. Kann keine Dateien auf Ihrer Plattform öffnen - bitte kontaktieren Sie den Autor über dieses Problem. ============================================================ --- guitone/src/view/InventoryView.cpp 27e07088435877b4e878e494a1326a2293d40e7a +++ guitone/src/view/InventoryView.cpp e4be7c3162cf3f29de547bf6bf00fcc028b9c224 @@ -281,18 +281,24 @@ void InventoryView::changeDirectory(cons if (type == FileList) { + // retranslate the proxy index to an index of the current model + QModelIndex proxyFileIndex = + static_cast(model())->mapFromSource(source); + if (item->isCdUp()) { // list the contents of the parent of the parent directory - setRootIndex(proxyIndex.parent().parent()); + setRootIndex(proxyFileIndex.parent().parent()); return; } - setRootIndex(proxyIndex); + setRootIndex(proxyFileIndex); return; } - // retranslate the proxy index - QModelIndex proxyFolderIndex = static_cast(model())->mapFromSource(source); + // retranslate the proxy index to an index of the current model + QModelIndex proxyFolderIndex = + static_cast(model())->mapFromSource(source); + // expand the selection if needed if (item->hasChildDirs()) {