From ccda662d920c746ee74d079dfbb644c15bf591f3 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 28 Jan 2009 23:35:00 +0000 Subject: set waiting cursor while loading a file (bzr r7203) --- src/file.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/file.cpp') 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) { -- cgit v1.2.3