diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2012-07-10 18:26:25 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2012-07-10 18:26:25 +0000 |
| commit | 738e2fcae54ef8764d33d3a47bf7868641efdcfd (patch) | |
| tree | 49baf56ac2e3f03b00fe1c3fbe915ea88949690b | |
| parent | Shortcuts. Fix for Bug #167796 (zoom keys (shortcuts) 3,4,6 on numeric pad no... (diff) | |
| download | inkscape-738e2fcae54ef8764d33d3a47bf7868641efdcfd.tar.gz inkscape-738e2fcae54ef8764d33d3a47bf7868641efdcfd.zip | |
OCAL. Fix for Bug #943275 (New Import Clip Art… dialog crashes on Windows).
(bzr r11538)
| -rw-r--r-- | src/ui/dialog/ocaldialogs.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<Gio::File> 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::RefPtr<Gio::File> , Glib::ustring>( sigc::mem_fun(*this, &ImportDialog::on_xml_file_read), |
