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
745feeb9
Commit
745feeb9
authored
Feb 05, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Update: clean and message Debug. My fault for the mess...
parent
1e0995cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/help.cpp
+10
-11
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/help.hpp
+0
-1
No files found.
modules/gui/qt4/dialogs/help.cpp
View file @
745feeb9
...
@@ -218,7 +218,7 @@ UpdateDialog::UpdateDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -218,7 +218,7 @@ UpdateDialog::UpdateDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
BUTTONACT
(
closeButton
,
close
()
);
BUTTONACT
(
closeButton
,
close
()
);
/* Create the update structure */
/* Create the update structure */
initUpdate
(
);
p_update
=
update_New
(
p_intf
);
b_checked
=
false
;
b_checked
=
false
;
/* Check for updates */
/* Check for updates */
...
@@ -241,13 +241,15 @@ void UpdateDialog::UpdateOrDownload()
...
@@ -241,13 +241,15 @@ void UpdateDialog::UpdateOrDownload()
if
(
!
b_checked
)
if
(
!
b_checked
)
{
{
updateButton
->
setEnabled
(
false
);
updateButton
->
setEnabled
(
false
);
msg_Dbg
(
p_intf
,
"Launching an update Request"
);
update_Check
(
p_update
,
UpdateCallback
,
this
);
update_Check
(
p_update
,
UpdateCallback
,
this
);
}
}
else
else
{
{
updateButton
->
setEnabled
(
false
);
updateButton
->
setEnabled
(
false
);
QString
dest_dir
=
QFileDialog
::
getExistingDirectory
(
this
,
qtr
(
"Select a directory ..."
),
QString
dest_dir
=
QFileDialog
::
getExistingDirectory
(
this
,
qfu
(
p_update
->
p_libvlc
->
psz_homedir
)
);
qtr
(
"Select a directory ..."
),
qfu
(
p_update
->
p_libvlc
->
psz_homedir
)
);
if
(
dest_dir
!=
""
)
if
(
dest_dir
!=
""
)
{
{
...
@@ -278,22 +280,19 @@ void UpdateDialog::updateNotify( bool b_result )
...
@@ -278,22 +280,19 @@ void UpdateDialog::updateNotify( bool b_result )
{
{
b_checked
=
true
;
b_checked
=
true
;
updateButton
->
setText
(
"Download"
);
updateButton
->
setText
(
"Download"
);
updateLabel
->
setText
(
qtr
(
"There is a new version of vlc :
\n
"
)
+
qfu
(
p_update
->
release
.
psz_desc
)
);
updateLabel
->
setText
(
qtr
(
"There is a new version of vlc :
\n
"
)
+
qfu
(
p_update
->
release
.
psz_desc
)
);
}
}
else
else
updateLabel
->
setText
(
qtr
(
"You have the latest version of vlc"
)
);
updateLabel
->
setText
(
qtr
(
"You have the latest version of vlc"
)
);
}
}
else
else
updateLabel
->
setText
(
qtr
(
"An error occure while checking for updates"
)
);
updateLabel
->
setText
(
qtr
(
"An error occured while checking for updates"
)
);
adjustSize
();
adjustSize
();
updateButton
->
setEnabled
(
true
);
updateButton
->
setEnabled
(
true
);
}
}
/* Initialise the p_update struct */
void
UpdateDialog
::
initUpdate
()
{
p_update
=
update_New
(
p_intf
);
}
#endif
#endif
modules/gui/qt4/dialogs/help.hpp
View file @
745feeb9
...
@@ -92,7 +92,6 @@ public:
...
@@ -92,7 +92,6 @@ public:
}
}
virtual
~
UpdateDialog
();
virtual
~
UpdateDialog
();
void
updateNotify
(
bool
);
void
updateNotify
(
bool
);
void
initUpdate
();
private:
private:
UpdateDialog
(
intf_thread_t
*
);
UpdateDialog
(
intf_thread_t
*
);
...
...
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