Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-gpu
Commits
34534e99
Commit
34534e99
authored
Nov 21, 2005
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix item selection in WX wizard (Closes:#402)
parent
826fad10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
+18
-5
No files found.
modules/gui/wxwidgets/dialogs/wizard.cpp
View file @
34534e99
...
@@ -591,6 +591,8 @@ wizInputPage::wizInputPage( wxWizard *parent, wxWizardPage *prev, intf_thread_t
...
@@ -591,6 +591,8 @@ wizInputPage::wizInputPage( wxWizard *parent, wxWizardPage *prev, intf_thread_t
listview
->
InsertItem
(
i
,
filename
);
listview
->
InsertItem
(
i
,
filename
);
listview
->
SetItem
(
i
,
1
,
wxL2U
(
p_playlist
->
pp_items
[
i
]
->
listview
->
SetItem
(
i
,
1
,
wxL2U
(
p_playlist
->
pp_items
[
i
]
->
input
.
psz_uri
)
);
input
.
psz_uri
)
);
listview
->
SetItemData
(
i
,
(
long
)
p_playlist
->
pp_items
[
i
]
->
input
.
i_id
);
}
}
listview
->
Select
(
p_playlist
->
i_index
,
TRUE
);
listview
->
Select
(
p_playlist
->
i_index
,
TRUE
);
mainSizer
->
Add
(
listview
,
1
,
wxALL
|
wxEXPAND
,
5
);
mainSizer
->
Add
(
listview
,
1
,
wxALL
|
wxEXPAND
,
5
);
...
@@ -715,14 +717,25 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
...
@@ -715,14 +717,25 @@ void wizInputPage::OnWizardPageChanging(wxWizardEvent& event)
else
else
{
{
int
i
=
-
1
;
int
i
=
-
1
;
wxListItem
listitem
;
i
=
listview
->
GetNextItem
(
i
,
wxLIST_NEXT_ALL
,
wxLIST_STATE_SELECTED
);
i
=
listview
->
GetNextItem
(
i
,
wxLIST_NEXT_ALL
,
wxLIST_STATE_SELECTED
);
if
(
i
!=
-
1
)
if
(
i
!=
-
1
)
{
{
listitem
.
SetId
(
i
);
long
data
=
listview
->
GetItemData
(
i
);
listitem
.
SetColumn
(
1
);
playlist_t
*
p_playlist
=
(
playlist_t
*
)
vlc_object_find
(
p_intf
,
listview
->
GetItem
(
listitem
);
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
p_parent
->
SetMrl
(
(
const
char
*
)
listitem
.
GetText
().
mb_str
()
);
if
(
p_playlist
)
{
playlist_item_t
*
p_item
=
playlist_LockItemGetById
(
p_playlist
,
(
int
)
data
);
if
(
p_item
)
{
p_parent
->
SetMrl
(
(
const
char
*
)
p_item
->
input
.
psz_uri
);
}
else
event
.
Veto
();
}
else
event
.
Veto
();
}
}
}
}
if
(
enable_checkbox
->
IsChecked
()
)
if
(
enable_checkbox
->
IsChecked
()
)
...
...
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