Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tusooa Zhu
Krita
Commits
e9fd1a66
Commit
e9fd1a66
authored
Nov 06, 2015
by
Michael Abrahams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash on canvas right click
I could have sworn I fixed this already! Closes T1025
parent
b4dc2dd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
krita/ui/input/kis_input_manager.cpp
krita/ui/input/kis_input_manager.cpp
+5
-3
No files found.
krita/ui/input/kis_input_manager.cpp
View file @
e9fd1a66
...
...
@@ -160,13 +160,15 @@ bool KisInputManager::eventFilter(QObject* object, QEvent* event)
if
(
object
!=
d
->
eventsReceiver
)
return
false
;
// If we have saved an event, take care of it now
, horribly breaking encapsulation with eventEater
// If we have saved an event, take care of it now
.
if
(
d
->
eventEater
.
savedEvent
)
{
auto
savedEvent
=
d
->
eventEater
.
savedEvent
;
d
->
eventEater
.
savedEvent
=
0
;
if
(
event
->
type
()
!=
QEvent
::
TabletPress
)
{
// Unless things are screwed up beyond hope, the old event was the real deal.
this
->
eventFilterImpl
(
d
->
eventEater
.
savedEvent
);
this
->
eventFilterImpl
(
savedEvent
);
}
d
->
eventEater
.
savedEvent
=
0
;
d
elete
savedEvent
;
}
if
(
d
->
eventEater
.
eventFilter
(
object
,
event
))
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment