diff --git a/apps/umve/viewinspect/viewinspect.cc b/apps/umve/viewinspect/viewinspect.cc index 3e936666c..e7a1045de 100644 --- a/apps/umve/viewinspect/viewinspect.cc +++ b/apps/umve/viewinspect/viewinspect.cc @@ -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); @@ -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;