Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
magicseteditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
magicseteditor
Commits
0fcd6e5f
Commit
0fcd6e5f
authored
May 18, 2008
by
twanvl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed keyword list after yesterdays multi select stuff
parent
041c87a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/gui/control/keyword_list.cpp
src/gui/control/keyword_list.cpp
+7
-11
No files found.
src/gui/control/keyword_list.cpp
View file @
0fcd6e5f
...
@@ -57,24 +57,20 @@ void KeywordList::onChangeSet() {
...
@@ -57,24 +57,20 @@ void KeywordList::onChangeSet() {
}
}
void
KeywordList
::
onAction
(
const
Action
&
action
,
bool
undone
)
{
void
KeywordList
::
onAction
(
const
Action
&
action
,
bool
undone
)
{
/*
TYPE_CASE(action, AddKeywordAction) {
TYPE_CASE
(
action
,
AddKeywordAction
)
{
if (action.adding != undone) {
if
(
action
.
a
ction
.
a
dding
!=
undone
)
{
// select the new keyword
// select the new keyword
selectItem(action.
keyword, false /*list will be refreshed anyway*
/, true);
selectItem
(
action
.
action
.
steps
[
0
].
item
,
false
/*list will be refreshed anyway*
/
,
true
);
refreshList
();
refreshList
();
}
else
{
}
else
{
long
pos
=
selected_item_pos
;
long
pos
=
selected_item_pos
;
refreshList
();
refreshList
();
if (action.keyword == selected_item) {
if
(
selected_item_pos
==
-
1
)
{
// select the next keyword, if not possible, select the last
// selected keyword was deleted, select the next
if (pos + 1 < GetItemCount()) {
selectItemPos
(
pos
,
true
);
selectItemPos(pos, true);
} else {
selectItemPos(GetItemCount() - 1, true);
}
}
}
}
}
}
*/
// TODO!!!
}
TYPE_CASE
(
action
,
ValueAction
)
{
TYPE_CASE
(
action
,
ValueAction
)
{
if
(
!
action
.
card
)
{
if
(
!
action
.
card
)
{
KeywordTextValue
*
value
=
dynamic_cast
<
KeywordTextValue
*>
(
action
.
valueP
.
get
());
KeywordTextValue
*
value
=
dynamic_cast
<
KeywordTextValue
*>
(
action
.
valueP
.
get
());
...
...
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