summaryrefslogtreecommitdiffstats
path: root/archivecontroller.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2014-04-18 11:28:00 +0200
committerArno <am@disconnect.de>2014-04-18 11:28:00 +0200
commitc1984a1fa33a2f7f730e439184a2c4773f0b95d0 (patch)
treee9796adc41425ee5e8e782220ecb9ceac982eba3 /archivecontroller.cpp
parente47bd732941d9f3469400292c3f05be71ba30c76 (diff)
downloadSheMov-c1984a1fa33a2f7f730e439184a2c4773f0b95d0.tar.gz
SheMov-c1984a1fa33a2f7f730e439184a2c4773f0b95d0.tar.bz2
SheMov-c1984a1fa33a2f7f730e439184a2c4773f0b95d0.zip
Show doubleClicked picture
Long standing bug, I guess. Select and show the doubleClicked picture instead of just loading all the others and showing the first one.
Diffstat (limited to 'archivecontroller.cpp')
-rw-r--r--archivecontroller.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/archivecontroller.cpp b/archivecontroller.cpp
index e5dbcc7..a50023b 100644
--- a/archivecontroller.cpp
+++ b/archivecontroller.cpp
@@ -331,6 +331,7 @@ void ArchiveController::fileDoubleClicked(const QModelIndex &idx){
}
pv->setShowMarkItem(false);
pv->addFiles(paths);
+ pv->selectPic(idx.data(ArchiveFilesModel::FullPathRole).toString());
pv->show();
}