Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
5e87283e
Commit
5e87283e
authored
Jan 31, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Updates: actually call the udpater when needed. Part 3
parent
2f20315a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/gui/qt4/qt4.cpp
modules/gui/qt4/qt4.cpp
+5
-3
No files found.
modules/gui/qt4/qt4.cpp
View file @
5e87283e
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "dialogs_provider.hpp"
#include "dialogs_provider.hpp"
#include "input_manager.hpp"
#include "input_manager.hpp"
#include "main_interface.hpp"
#include "main_interface.hpp"
#include "dialogs/help.hpp"
/* update */
#ifdef HAVE_X11_XLIB_H
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#include <X11/Xlib.h>
...
@@ -351,13 +352,14 @@ static void Init( intf_thread_t *p_intf )
...
@@ -351,13 +352,14 @@ static void Init( intf_thread_t *p_intf )
QSettings
settings
(
"vlc"
,
"vlc-qt-interface"
);
QSettings
settings
(
"vlc"
,
"vlc-qt-interface"
);
if
(
QDate
::
currentDate
()
>
settings
.
value
(
"updatedate"
).
toDate
().
addDays
(
interval
)
)
if
(
QDate
::
currentDate
()
>
settings
.
value
(
"updatedate"
).
toDate
().
addDays
(
interval
)
)
{
{
msg_Dbg
(
p_intf
,
"Someone said I need to update"
);
msg_Dbg
(
p_intf
,
"Someone said I need to check updates"
);
//FIXME Call the updater.
/* The constructor of the update Dialog will do the 1st request */
UpdateDialog
::
getInstance
(
p_intf
);
settings
.
setValue
(
"updatedate"
,
QDate
::
currentDate
()
);
settings
.
setValue
(
"updatedate"
,
QDate
::
currentDate
()
);
}
}
}
}
#endif
#endif
/* Launch */
/* Launch */
app
->
exec
();
app
->
exec
();
...
...
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