Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
08166f7d
Commit
08166f7d
authored
Feb 13, 2015
by
Jeffrey Oliver
Browse files
Use !isSelected()
parent
180108e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/abstractcarditem.cpp
View file @
08166f7d
...
...
@@ -227,7 +227,7 @@ void AbstractCardItem::setFaceDown(bool _facedown)
void
AbstractCardItem
::
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
)
{
if
((
event
->
modifiers
()
&
Qt
::
ControlModifier
))
{
setSelected
(
isSelected
()
?
false
:
true
);
setSelected
(
!
isSelected
());
}
else
if
(
!
isSelected
())
{
scene
()
->
clearSelection
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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