summaryrefslogtreecommitdiff
path: root/ui/checkVersion.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:30 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:05:30 +0200
commitc0fce877c478ddbf71a1b651c789e5ea00a00144 (patch)
treede01b0ae8fd296bd24fbca54a80f2f0ba071d461 /ui/checkVersion.cpp
parent3.3 (diff)
downloadFreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.tar.gz
FreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.tar.bz2
FreeFileSync-c0fce877c478ddbf71a1b651c789e5ea00a00144.zip
3.4
Diffstat (limited to 'ui/checkVersion.cpp')
-rw-r--r--ui/checkVersion.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/ui/checkVersion.cpp b/ui/checkVersion.cpp
index 9ecb8876..7a509204 100644
--- a/ui/checkVersion.cpp
+++ b/ui/checkVersion.cpp
@@ -1,3 +1,9 @@
+// **************************************************************************
+// * This file is part of the FreeFileSync project. It is distributed under *
+// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
+// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de) *
+// **************************************************************************
+//
#include "checkVersion.h"
#include <wx/msgdlg.h>
#include <wx/protocol/http.h>
@@ -6,7 +12,9 @@
#include <wx/utils.h>
#include <wx/timer.h>
#include "../shared/globalFunctions.h"
-#include "smallDialogs.h"
+//#include "smallDialogs.h"
+#include "messagePopup.h"
+#include "../shared/standardPaths.h"
class CloseConnectionOnExit
@@ -108,6 +116,11 @@ void FreeFileSync::checkForUpdateNow()
void FreeFileSync::checkForUpdatePeriodically(long& lastUpdateCheck)
{
+#ifdef FFS_LINUX
+ if (!FreeFileSync::isPortableVersion()) //don't check for updates in installer version -> else: handled by .deb
+ return;
+#endif
+
if (lastUpdateCheck != -1)
{
if (lastUpdateCheck == 0)
@@ -120,7 +133,7 @@ void FreeFileSync::checkForUpdatePeriodically(long& lastUpdateCheck)
const bool checkRegularly = messageDlg->ShowModal() == QuestionDlg::BUTTON_YES;
messageDlg->Destroy();
if (checkRegularly)
- {
+ {
lastUpdateCheck = 123; //some old date (few seconds after 1970)
checkForUpdatePeriodically(lastUpdateCheck); //check for updates now
bgstack15