From: buliabyak Date: Wed, 28 Jan 2009 23:35:00 +0000 (+0000) Subject: set waiting cursor while loading a file X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99f48758f93fa2d7f2cba5d3974d15413312caea;p=inkscape.git set waiting cursor while loading a file --- diff --git a/src/file.cpp b/src/file.cpp index 95c4d22ca..5c729eeeb 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -198,6 +198,10 @@ sp_file_open(const Glib::ustring &uri, Inkscape::Extension::Extension *key, bool add_to_recent, bool replace_empty) { + SPDesktop *desktop = SP_ACTIVE_DESKTOP; + if (desktop) + desktop->setWaitingCursor(); + SPDocument *doc = NULL; try { doc = Inkscape::Extension::open(key, uri.c_str()); @@ -207,8 +211,10 @@ sp_file_open(const Glib::ustring &uri, doc = NULL; } + if (desktop) + desktop->clearWaitingCursor(); + if (doc) { - SPDesktop *desktop = SP_ACTIVE_DESKTOP; SPDocument *existing = desktop ? sp_desktop_document(desktop) : NULL; if (existing && existing->virgin && replace_empty) {