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
56f13b36
Commit
56f13b36
authored
Aug 11, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some quitting issues from skins2 when Qt in theDP.
parent
6e108358
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+16
-9
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+1
-0
No files found.
modules/gui/qt4/qt4.cpp
View file @
56f13b36
...
@@ -272,9 +272,11 @@ static void Close( vlc_object_t *p_this )
...
@@ -272,9 +272,11 @@ static void Close( vlc_object_t *p_this )
if
(
p_intf
->
p_sys
->
b_isDialogProvider
)
if
(
p_intf
->
p_sys
->
b_isDialogProvider
)
{
{
DialogEvent
*
event
=
new
DialogEvent
(
INTF_DIALOG_EXIT
,
0
,
NULL
);
if
(
p_intf
->
p_sys
->
p_dp
)
QApplication
::
postEvent
(
THEDP
,
static_cast
<
QEvent
*>
(
event
)
);
{
DialogEvent
*
event
=
new
DialogEvent
(
INTF_DIALOG_EXIT
,
0
,
NULL
);
QApplication
::
postEvent
(
THEDP
,
static_cast
<
QEvent
*>
(
event
)
);
}
vlc_thread_join
(
p_intf
);
vlc_thread_join
(
p_intf
);
}
}
...
@@ -342,7 +344,7 @@ static void *Init( vlc_object_t *obj )
...
@@ -342,7 +344,7 @@ static void *Init( vlc_object_t *obj )
app
->
setWindowIcon
(
QIcon
(
QPixmap
(
vlc_xpm
)
)
);
app
->
setWindowIcon
(
QIcon
(
QPixmap
(
vlc_xpm
)
)
);
/* Initialize timers and the Dialog Provider */
/* Initialize timers and the Dialog Provider */
DialogsProvider
::
getInstance
(
p_intf
);
p_intf
->
p_sys
->
p_dp
=
DialogsProvider
::
getInstance
(
p_intf
);
QPointer
<
MainInterface
>
*
miP
=
NULL
;
QPointer
<
MainInterface
>
*
miP
=
NULL
;
...
@@ -424,6 +426,7 @@ static void *Init( vlc_object_t *obj )
...
@@ -424,6 +426,7 @@ static void *Init( vlc_object_t *obj )
app
->
exec
();
app
->
exec
();
/* And quit */
/* And quit */
msg_Dbg
(
p_intf
,
"Quitting the Qt4 Interface"
);
if
(
miP
)
if
(
miP
)
{
{
...
@@ -442,16 +445,20 @@ static void *Init( vlc_object_t *obj )
...
@@ -442,16 +445,20 @@ static void *Init( vlc_object_t *obj )
in the MainInputManager */
in the MainInputManager */
delete
p_intf
->
p_sys
->
p_mi
;
delete
p_intf
->
p_sys
->
p_mi
;
/* Destroy then other windows, because some are connected to some slots
/* Destroy all remaining windows,
in the MainInputManager */
because some are connected to some slots
in the MainInputManager
Settings must be destroyed after that.
*/
DialogsProvider
::
killInstance
();
DialogsProvider
::
killInstance
();
p_intf
->
p_sys
->
p_dp
=
NULL
;
/* Delete the configuration. Application has to be deleted after that. */
delete
p_intf
->
p_sys
->
mainSettings
;
/* Destroy the MainInputManager */
/* Destroy the MainInputManager */
MainInputManager
::
killInstance
();
MainInputManager
::
killInstance
();
/* Delete the configuration */
delete
p_intf
->
p_sys
->
mainSettings
;
/* Delete the application */
/* Delete the application */
delete
app
;
delete
app
;
...
...
modules/gui/qt4/qt4.hpp
View file @
56f13b36
...
@@ -52,6 +52,7 @@ struct intf_sys_t
...
@@ -52,6 +52,7 @@ struct intf_sys_t
{
{
QApplication
*
p_app
;
QApplication
*
p_app
;
MainInterface
*
p_mi
;
MainInterface
*
p_mi
;
DialogsProvider
*
p_dp
;
QSettings
*
mainSettings
;
QSettings
*
mainSettings
;
...
...
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