diff options
| author | Stefano Facchini <stefano.facchini@gmail.com> | 2017-10-20 15:10:39 +0000 |
|---|---|---|
| committer | Stefano Facchini <stefano.facchini@gmail.com> | 2017-11-13 09:28:49 +0000 |
| commit | 03018c2f56855c6c9006f7feace63febdef7bc52 (patch) | |
| tree | 6bd1ec198f08b5a63cca206ad3f7de752ef08d96 /src/ui/tools-switch.cpp | |
| parent | Merge branch 'master' into powerpencil (diff) | |
| download | inkscape-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.cpp | 2 |
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); |
