From 99f48758f93fa2d7f2cba5d3974d15413312caea Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 28 Jan 2009 23:35:00 +0000 Subject: [PATCH] set waiting cursor while loading a file --- src/file.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.30.2