Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Esteban Blanc
proview
Commits
84a2c173
Commit
84a2c173
authored
Aug 11, 2009
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt command 'create item' with null destination creates item on toplevel
parent
3022b502
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
xtt/changelog.txt
xtt/changelog.txt
+1
-0
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+4
-1
No files found.
xtt/changelog.txt
View file @
84a2c173
...
...
@@ -136,3 +136,4 @@
090601 cs ge New action: SetValue to set a specified value into an attribute.
090625 cs xtt Bugfix in eventlist, adding event in a full list could cause segfault.
090625 cs xtt Blocklist window title was wrong.
090811 cs xtt Command 'create item' with null destination creaets item on toplevel.
\ No newline at end of file
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
84a2c173
...
...
@@ -3833,6 +3833,7 @@ static int xnav_create_func( void *client_data,
{
char
text_str
[
80
];
char
destination_str
[
80
];
char
*
destination_p
=
destination_str
;
char
command_str
[
80
];
char
pixmap_str
[
80
];
menu_ePixmap
pixmap
;
...
...
@@ -3859,6 +3860,8 @@ static int xnav_create_func( void *client_data,
xnav
->
message
(
'E'
,
"Enter destination"
);
return
XNAV__HOLDCOMMAND
;
}
if
(
strcmp
(
destination_str
,
""
)
==
0
)
destination_p
=
0
;
if
(
ODD
(
dcli_get_qualifier
(
"/COMMAND"
,
command_str
,
sizeof
(
command_str
))))
item_type
=
xnav_eItemType_Command
;
if
(
ODD
(
dcli_get_qualifier
(
"/MENU"
,
0
,
0
)))
...
...
@@ -3892,7 +3895,7 @@ static int xnav_create_func( void *client_data,
pixmap
=
menu_ePixmap_Map
;
sts
=
xnav
->
menu_tree_insert
(
text_str
,
item_type
,
command_str
,
pixmap
,
destination_
str
,
dest_code
,
&
menu_item
);
destination_
p
,
dest_code
,
&
menu_item
);
if
(
EVEN
(
sts
))
xnav
->
message
(
'E'
,
"Destination not found"
);
...
...
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