Unverified Commit 87a50c15 authored by Murray Cumming's avatar Murray Cumming
Browse files

DialogImage*Progress: Use correct MessageDialog constructor parameters

Noticed by g++:

glom/utility_widgets/dialog_image_load_progress.cc:160:127: warning: enum constant in boolean context [-Wint-in-bool-context]
  160 |   Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), m_file->get_parse_name()), Gtk::MESSAGE_ERROR);
parent 0fa93cbb
......@@ -157,7 +157,7 @@ void DialogImageLoadProgress::on_read_next(unsigned int at)
void DialogImageLoadProgress::error(const Glib::ustring& error_message)
{
Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), m_file->get_parse_name()), Gtk::MESSAGE_ERROR);
Gtk::MessageDialog dialog(*this, Glib::ustring::compose(_("Error loading %1"), m_file->get_parse_name()), false, Gtk::MESSAGE_ERROR);
dialog.set_title(_("Error loading image"));
dialog.set_secondary_text(error_message);
......
......@@ -130,7 +130,7 @@ void DialogImageSaveProgress::on_stream_write(const Glib::RefPtr<Gio::AsyncResul
void DialogImageSaveProgress::error(const Glib::ustring& error_message)
{
Gtk::MessageDialog dialog(*this, _("Error Saving"), Gtk::MESSAGE_ERROR);
Gtk::MessageDialog dialog(*this, _("Error Saving"), false, Gtk::MESSAGE_ERROR);
dialog.set_title(_("Error saving image"));
dialog.set_secondary_text(error_message);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment