From 738e2fcae54ef8764d33d3a47bf7868641efdcfd Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Tue, 10 Jul 2012 20:26:25 +0200 Subject: =?UTF-8?q?OCAL.=20Fix=20for=20Bug=20#943275=20(New=20Import=20Cli?= =?UTF-8?q?p=20Art=E2=80=A6=20dialog=20crashes=20on=20Windows).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (bzr r11538) --- src/ui/dialog/ocaldialogs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ui/dialog/ocaldialogs.cpp b/src/ui/dialog/ocaldialogs.cpp index e87b0d831..3fc2e4fce 100644 --- a/src/ui/dialog/ocaldialogs.cpp +++ b/src/ui/dialog/ocaldialogs.cpp @@ -1108,7 +1108,12 @@ void ImportDialog::on_entry_search_activated() // Open the RSS feed Glib::RefPtr xml_file = Gio::File::create_for_uri(xml_uri); - +#ifdef WIN32 + if (!xml_file->query_exists()) { + widget_status->set_error(_("Could not connect to the Open Clip Art Library")); + return; + } +#endif xml_file->load_contents_async( sigc::bind , Glib::ustring>( sigc::mem_fun(*this, &ImportDialog::on_xml_file_read), -- cgit v1.2.3