diff options
| author | bulia byak <buliabyak@gmail.com> | 2009-01-28 23:35:00 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2009-01-28 23:35:00 +0000 |
| commit | ccda662d920c746ee74d079dfbb644c15bf591f3 (patch) | |
| tree | 7fb973bb820020b26c60bf4b6af9b651cd90523c /src/file.cpp | |
| parent | do not change cursor if desktop has set it to waiting (diff) | |
| download | inkscape-ccda662d920c746ee74d079dfbb644c15bf591f3.tar.gz inkscape-ccda662d920c746ee74d079dfbb644c15bf591f3.zip | |
set waiting cursor while loading a file
(bzr r7203)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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) { |
