Skip to content

Commit

Permalink
Revert "UMVE: Fix Qt 5.15 deprecation warnings"
Browse files Browse the repository at this point in the history
This reverts commit 877e0a3.
  • Loading branch information
andre-schulz committed Jul 21, 2024
1 parent 66989b8 commit 1f0890f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/umve/viewinspect/viewinspect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ ViewInspect::show_details (bool show)
void
ViewInspect::update_actions (void)
{
bool active = !!this->scroll_image->get_pixmap();
bool active = this->scroll_image->get_pixmap() != nullptr;
this->action_zoom_fit->setEnabled(active);
this->action_zoom_in->setEnabled(active);
this->action_zoom_out->setEnabled(active);
Expand Down Expand Up @@ -700,7 +700,7 @@ ViewInspect::on_ply_export (void)
void
ViewInspect::on_image_export (void)
{
if (!this->scroll_image->get_image()->pixmap(Qt::ReturnByValue))
if (!this->scroll_image->get_image()->pixmap())
{
QMessageBox::critical(this, "Cannot save image", "No such image");
return;
Expand Down

0 comments on commit 1f0890f

Please sign in to comment.