Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7f485998
Commit
7f485998
authored
Nov 19, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix WinXP quitting issue
parent
6c74b935
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
10 deletions
+21
-10
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+9
-4
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+1
-0
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+11
-6
No files found.
modules/gui/qt4/main_interface.cpp
View file @
7f485998
...
...
@@ -226,6 +226,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
CONNECT
(
THEDP
,
toolBarConfUpdated
(),
this
,
recreateToolbars
()
);
CONNECT
(
this
,
askToQuit
(),
THEDP
,
quit
()
);
/** END of CONNECTS**/
...
...
@@ -265,6 +267,8 @@ MainInterface::~MainInterface()
if
(
stackCentralOldWidget
==
videoWidget
)
showTab
(
bgWidget
);
releaseVideoSlot
();
#ifdef WIN32
if
(
himl
)
ImageList_Destroy
(
himl
);
...
...
@@ -597,7 +601,8 @@ void MainInterface::releaseVideo( void )
/* Function that is CONNECTED to the previous emit */
void
MainInterface
::
releaseVideoSlot
(
void
)
{
videoWidget
->
release
();
if
(
videoWidget
)
videoWidget
->
release
();
setVideoOnTop
(
false
);
setVideoFullScreen
(
false
);
...
...
@@ -1180,9 +1185,9 @@ void MainInterface::wheelEvent( QWheelEvent *e )
void
MainInterface
::
closeEvent
(
QCloseEvent
*
e
)
{
e
->
accept
();
hide
();
THEDP
->
quit
();
e
->
ignore
();
/* Do not quit */
//
hide();
emit
askToQuit
();
/* ask THEDP to quit, so we have a unique method */
}
void
MainInterface
::
setInterfaceFullScreen
(
bool
fs
)
...
...
modules/gui/qt4/main_interface.hpp
View file @
7f485998
...
...
@@ -244,6 +244,7 @@ signals:
void
askVideoOnTop
(
bool
);
void
minimalViewToggled
(
bool
);
void
fullscreenInterfaceToggled
(
bool
);
void
askToQuit
();
};
...
...
modules/gui/qt4/qt4.cpp
View file @
7f485998
...
...
@@ -396,8 +396,15 @@ static void Close( vlc_object_t *p_this )
var_Destroy
(
pl_Get
(
p_this
),
"qt4-iface"
);
}
/* And quit */
msg_Dbg
(
p_intf
,
"Please die, die, die..."
);
QApplication
::
closeAllWindows
();
// QApplication::quit();
QVLCApp
::
triggerQuit
();
msg_Dbg
(
p_intf
,
"Please die, die, die 2..."
);
#ifndef Q_WS_MAC
vlc_join
(
p_sys
->
thread
,
NULL
);
#endif
...
...
@@ -445,7 +452,7 @@ static void *Thread( void *obj )
#endif
QSettings
::
UserScope
,
"vlc"
,
"vlc-qt-interface"
);
/* Icon setting */
/* Icon setting
, Mac uses icon from .icns
*/
#ifndef Q_WS_MAC
if
(
QDate
::
currentDate
().
dayOfYear
()
>=
352
)
/* One Week before Xmas */
app
.
setWindowIcon
(
QIcon
(
vlc_christmas_xpm
)
);
...
...
@@ -456,7 +463,7 @@ static void *Thread( void *obj )
/* Initialize timers and the Dialog Provider */
DialogsProvider
::
getInstance
(
p_intf
);
/* Detect screensize for small screens like TV or
EEEpc
*/
/* Detect screensize for small screens like TV or
Netbooks
*/
p_intf
->
p_sys
->
i_screenHeight
=
app
.
QApplication
::
desktop
()
->
availableGeometry
().
height
();
...
...
@@ -499,7 +506,7 @@ static void *Thread( void *obj )
#endif
/* Last settings */
app
.
setQuitOnLastWindowClosed
(
fals
e
);
app
.
setQuitOnLastWindowClosed
(
tru
e
);
/* Retrieve last known path used in file browsing */
p_intf
->
p_sys
->
filepath
=
...
...
@@ -513,9 +520,7 @@ static void *Thread( void *obj )
/* Launch */
app
.
exec
();
/* And quit */
QApplication
::
closeAllWindows
();
msg_Dbg
(
p_intf
,
"QApp exec() finished"
);
if
(
p_mi
!=
NULL
)
{
#warning BUG!
...
...
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