Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
67e84bad
Commit
67e84bad
authored
Jan 10, 2009
by
Rémi Denis-Courmont
Browse files
Fix grammar and don't minimize if config_getInt fails
parent
50866663
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/main_interface.cpp
View file @
67e84bad
...
...
@@ -308,22 +308,21 @@ inline void MainInterface::createStatusBar()
inline
void
MainInterface
::
initSystray
()
{
bool
b_createSystray
=
false
;
bool
b_systrayAvailable
=
QSystemTrayIcon
::
isSystemTrayAvailable
();
if
(
config_GetInt
(
p_intf
,
"qt-start-minimized"
)
)
bool
b_systrayWanted
=
config_GetInt
(
p_intf
,
"qt-system-tray"
);
if
(
config_GetInt
(
p_intf
,
"qt-start-minimized"
)
>
0
)
{
if
(
b_systrayAvailable
)
{
b_
createSystray
=
true
;
b_
systrayWanted
=
true
;
hide
();
}
else
msg_Err
(
p_intf
,
"You can't minimize if you haven't a system "
"
tray bar"
);
else
msg_Err
(
p_intf
,
"cannot start minimized without system
tray bar"
);
}
if
(
config_GetInt
(
p_intf
,
"qt-system-tray"
)
)
b_createSystray
=
true
;
if
(
b_systrayAvailable
&&
b_
createSystray
)
if
(
b_systrayAvailable
&&
b_
systrayWanted
)
createSystray
();
}
...
...
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