mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 19:45:31 +01:00
Don't allow images that haven't been loaded yet to be clicked
This commit is contained in:
parent
81fb559f66
commit
95b007403e
@ -300,7 +300,11 @@ void PrettyImageView::ShowFullsize() {
|
|||||||
if (current_index_ < 0 || current_index_ >= images_.count())
|
if (current_index_ < 0 || current_index_ >= images_.count())
|
||||||
return;
|
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
|
// Work out how large to make the window, based on the size of the screen
|
||||||
QRect desktop_rect(QApplication::desktop()->availableGeometry(this));
|
QRect desktop_rect(QApplication::desktop()->availableGeometry(this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user