summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-19 21:24:08 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-19 21:24:08 +0000
commit490eb1e7f52f50d9d9a531c2a54a5d9616ff50bf (patch)
treee4ee5524fba457fc817cbe2353cd0eeb24f9e7d5 /src/file.cpp
parentFix some issues with constrained snapping (diff)
downloadinkscape-490eb1e7f52f50d9d9a531c2a54a5d9616ff50bf.tar.gz
inkscape-490eb1e7f52f50d9d9a531c2a54a5d9616ff50bf.zip
Clear the waiting cursor on the old desktop after creating a new one
(bzr r13528)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 580c93c9e..200077de5 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -148,14 +148,14 @@ SPDesktop *sp_file_new(const std::string &templ)
DocumentUndo::setUndoSensitive(doc, true);
}
- SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- if (desktop)
- desktop->setWaitingCursor();
+ SPDesktop *olddesktop = SP_ACTIVE_DESKTOP;
+ if (olddesktop)
+ olddesktop->setWaitingCursor();
SPViewWidget *dtw = sp_desktop_widget_new(sp_document_namedview(doc, NULL)); // TODO this will trigger broken link warnings, etc.
g_return_val_if_fail(dtw != NULL, NULL);
sp_create_window(dtw, TRUE);
- desktop = static_cast<SPDesktop *>(dtw->view);
+ SPDesktop* desktop = static_cast<SPDesktop *>(dtw->view);
doc->doUnref();
@@ -166,6 +166,8 @@ SPDesktop *sp_file_new(const std::string &templ)
Inkscape::Extension::Dbus::dbus_init_desktop_interface(desktop);
#endif
+ if (olddesktop)
+ olddesktop->clearWaitingCursor();
if (desktop)
desktop->clearWaitingCursor();