Commit 7c67c186 authored by Murray Cumming's avatar Murray Cumming

DialogImageLoad/SaveProgress: Correct MessageDialog code

Recent versions of gcc helpfully notice that this was passing an
enum value for a bool parameter:

warning: enum constant in boolean context [-Wint-in-bool-context]
parent c6016abe
......@@ -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