summaryrefslogtreecommitdiffstats
path: root/src/ui/tools-switch.cpp
diff options
context:
space:
mode:
authorStefano Facchini <stefano.facchini@gmail.com>2017-10-20 15:10:39 +0000
committerStefano Facchini <stefano.facchini@gmail.com>2017-11-13 09:28:49 +0000
commit03018c2f56855c6c9006f7feace63febdef7bc52 (patch)
tree6bd1ec198f08b5a63cca206ad3f7de752ef08d96 /src/ui/tools-switch.cpp
parentMerge branch 'master' into powerpencil (diff)
downloadinkscape-03018c2f56855c6c9006f7feace63febdef7bc52.tar.gz
inkscape-03018c2f56855c6c9006f7feace63febdef7bc52.zip
Refactor SPDesktop::setEventContext to allow for unsetting the current tool
Passing the empty string as toolName has the effect of unsetting and freeing the current tool. This will be used in a future commit.
Diffstat (limited to 'src/ui/tools-switch.cpp')
-rw-r--r--src/ui/tools-switch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools-switch.cpp b/src/ui/tools-switch.cpp
index d87bcc51d..e2803ccfd 100644
--- a/src/ui/tools-switch.cpp
+++ b/src/ui/tools-switch.cpp
@@ -157,7 +157,7 @@ tools_switch(SPDesktop *dt, int num)
dt->_tool_changed.emit(num);
}
- dt->set_event_context2(tool_names[num]);
+ dt->setEventContext(tool_names[num]);
/* fixme: This is really ugly hack. We should bind and unbind class methods */
/* First 4 tools use guides, first is undefined but we don't care */
dt->activate_guides(num < 5);