浏览代码

Merge pull request #636 from AndreasFetzer/fixed-msvs2012-build-error-in-xnat-module

Fixed build error for MSVS 2012
Jean-Christophe Fillion-Robin 9 年之前
父节点
当前提交
b721b7caf8
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Libs/XNAT/Core/ctkXnatSession.cpp

+ 5 - 1
Libs/XNAT/Core/ctkXnatSession.cpp

@@ -73,12 +73,14 @@ public:
   QTimer* timer;
 
   // The time in milliseconds until the signal aboutToTimeOut gets emitted
+  // XNAT sessions time out after 15 minutes (=900000 ms) by default
+  // i.e. by default this signal will be emitted after 840000 ms
   int timeOutWarningPeriod;
 
   // The time in milliseconds until the signal timedOut gets emitted
   // Default XNAT session timeout setting. This value will be updated after
   // "updateExpirationDate" is called the first time.
-  int timeOutPeriod = 60000;
+  int timeOutPeriod;
 
   ctkXnatSessionPrivate(const ctkXnatLoginProfile& loginProfile, ctkXnatSession* q);
   ~ctkXnatSessionPrivate();
@@ -104,6 +106,8 @@ ctkXnatSessionPrivate::ctkXnatSessionPrivate(const ctkXnatLoginProfile& loginPro
   , defaultDownloadDir(".")
   , q(q)
   , timer(new QTimer(q))
+  , timeOutWarningPeriod (840000)
+  , timeOutPeriod(60000)
 {
   // TODO This is a workaround for connecting to sites with self-signed
   // certificate. Should be replaced with something more clever.