mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add "Check for updates" Feature
This patch adds a check for updates feature. It connects to http://subsurface.hohndel.org/updatecheck.html to check for any new versions. It then prompts the user with a download link if an update is available. Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5cec965cb7
commit
ede6a38bcf
6 changed files with 109 additions and 2 deletions
|
@ -37,6 +37,7 @@
|
|||
#include "diveplanner.h"
|
||||
#include "about.h"
|
||||
#include "worldmap-save.h"
|
||||
#include "updatemanager.h"
|
||||
#ifndef NO_PRINTING
|
||||
#include "printdialog.h"
|
||||
#endif
|
||||
|
@ -84,6 +85,8 @@ MainWindow::MainWindow() : QMainWindow(),
|
|||
ui.divePlanner->settingsChanged();
|
||||
ui.divePlannerWidget->settingsChanged();
|
||||
|
||||
updateManager = new UpdateManager(this);
|
||||
|
||||
#ifndef ENABLE_PLANNER
|
||||
// ui.menuLog->removeAction(ui.actionDivePlanner);
|
||||
#endif
|
||||
|
@ -575,6 +578,11 @@ void MainWindow::on_actionAboutSubsurface_triggered()
|
|||
dlg.exec();
|
||||
}
|
||||
|
||||
void MainWindow::on_action_Check_for_Updates_triggered()
|
||||
{
|
||||
updateManager->checkForUpdates();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionUserManual_triggered()
|
||||
{
|
||||
#ifndef NO_USERMANUAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue