summaryrefslogtreecommitdiff
path: root/ui/check_version.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:10:11 +0200
commitc0cdb2ad99a1e2a6ade5ce76c91177a79258e669 (patch)
tree4701a015385d9a6a5a4ba99a8f1f5d400fff26b1 /ui/check_version.cpp
parent3.13 (diff)
downloadFreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.gz
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.tar.bz2
FreeFileSync-c0cdb2ad99a1e2a6ade5ce76c91177a79258e669.zip
3.14
Diffstat (limited to 'ui/check_version.cpp')
-rw-r--r--ui/check_version.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/check_version.cpp b/ui/check_version.cpp
index 4fb74c49..fa1b84a1 100644
--- a/ui/check_version.cpp
+++ b/ui/check_version.cpp
@@ -131,13 +131,12 @@ void ffs3::checkForUpdatePeriodically(long& lastUpdateCheck)
{
if (lastUpdateCheck == 0)
{
- QuestionDlg* const messageDlg = new QuestionDlg(NULL,
- QuestionDlg::BUTTON_YES | QuestionDlg::BUTTON_NO,
- wxString(_("Do you want FreeFileSync to automatically check for updates every week?")) + wxT("\n") +
- _("(Requires an Internet connection!)"));
+ QuestionDlg messageDlg(NULL,
+ QuestionDlg::BUTTON_YES | QuestionDlg::BUTTON_NO,
+ wxString(_("Do you want FreeFileSync to automatically check for updates every week?")) + wxT("\n") +
+ _("(Requires an Internet connection!)"));
- const bool checkRegularly = messageDlg->ShowModal() == QuestionDlg::BUTTON_YES;
- messageDlg->Destroy();
+ const bool checkRegularly = messageDlg.ShowModal() == QuestionDlg::BUTTON_YES;
if (checkRegularly)
{
lastUpdateCheck = 123; //some old date (few seconds after 1970)
bgstack15