Don't allow images that haven't been loaded yet to be clicked

This commit is contained in:
David Sansome 2010-10-09 10:42:38 +00:00
parent 81fb559f66
commit 95b007403e
1 changed files with 5 additions and 1 deletions

View File

@ -300,7 +300,11 @@ void PrettyImageView::ShowFullsize() {
if (current_index_ < 0 || current_index_ >= images_.count())
return;
const QImage& image = images_[current_index_].image_;
const Image& image_data = images_[current_index_];
if (image_data.state_ != Image::Loaded)
return;
const QImage& image = image_data.image_;
// Work out how large to make the window, based on the size of the screen
QRect desktop_rect(QApplication::desktop()->availableGeometry(this));