Only reload images for thumbbrowserentrybase::resize if the size has really

changed. Makes closing preferences, 'I' key faster.
This commit is contained in:
Steve Herrell
2010-12-07 21:33:42 -05:00
parent a3e30e0d05
commit 2ddb6482da
2 changed files with 14 additions and 6 deletions

View File

@@ -492,7 +492,8 @@ void ThumbBrowserBase::refreshThumbImages () {
for (int i=0; i<fd.size(); i++){
previewHeight = getCurrentThumbSize();
fd[i]->resize (previewHeight);// TODO!!! Might be performance bottleneck
fd[i]->refreshThumbnailImage (); // TODO: This might cause crashes on some installations
/* called if necessary by resize()
fd[i]->refreshThumbnailImage (); TODO: This might cause crashes on some installations */
}
redraw ();