Fix "Save patch..." wrong revision order
commit9c83aaec9f9b0cf9c75d4c47b3722073a7db6a07
authorMarco Costalba <mcostalba@gmail.com>
Thu, 18 Jun 2009 06:51:47 +0000 (18 08:51 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 18 Jun 2009 06:52:21 +0000 (18 08:52 +0200)
tree84b46fd5b99f09c3fedf2a0f2e93afd719543841
parentfd22d9798d5f61ec88da13a4c22b271de2a5c659
Fix "Save patch..." wrong revision order

When selecting more then one revision and calling
"Save patch..." the patches _could_ be created in
the wrong order.

It happens as example with Qt4.4 as reported by
Markus Heidelberg, while Qt4.3 doesn't have this problem.

This is due to how QItemSelectionModel::selectedRows()
is implemented across different Qt versions.

This patch always orders the selected revs from newest to
oldest to avoid relying on an undocumented feature and to
work correctly under any Qt version.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/git.cpp
src/git.h
src/listview.cpp