Changed sync url and sync website url.
authorWillem Liu <willem.liu@gmail.com>
Tue, 3 May 2011 17:37:35 +0000 (19:37 +0200)
committerWillem Liu <willem.liu@gmail.com>
Tue, 3 May 2011 17:37:35 +0000 (19:37 +0200)
debian/changelog
globals.h
settingsform.cpp

index 1491e30..0dd7f76 100755 (executable)
@@ -1,5 +1,7 @@
 easylist (0.3.26) unstable; urgency=low
 
-  * Initial Release.
+       * Changed default sync website to http://easylist.willemliu.nl
+       * Changed default sync URL to http://easylist.willemliu.nl/getList.php
+  * Minor improvements to the About box.
 
  -- Willem Liu <willem.liu@gmail.com>  Sat, 30 Apr 2011 11:57:57 +0200
index 87826d7..273aad0 100755 (executable)
--- a/globals.h
+++ b/globals.h
@@ -16,7 +16,7 @@
 #define USERNAME "Username"\r
 #define PASSWORD "Password"\r
 #define SYNC_URL "SyncUrl"\r
-#define DEFAULT_SYNC_URL "http://www.willemliu.nl/qt/maemo/easylist/getList.php"\r
+#define DEFAULT_SYNC_URL "http://easylist.willemliu.nl/getList.php"\r
 #define SYNC_LIST_NAME "SyncList"\r
 \r
 static const int BACK = 0;\r
index 5fdce8a..6ca1b03 100755 (executable)
@@ -28,7 +28,12 @@ void SettingsForm::shown()
         ui->syncPasswordLineEdit->setReadOnly(true);\r
     }\r
 \r
-    ui->syncUrlLineEdit->setText(settings->value(SYNC_URL, DEFAULT_SYNC_URL).toString());\r
+    QString syncUrl = settings->value(SYNC_URL, DEFAULT_SYNC_URL).toString();\r
+    if(syncUrl.compare("http://www.willemliu.nl/qt/maemo/easylist/getList.php") == 0)\r
+    {\r
+        syncUrl = "http://easylist.willemliu.nl/getList.php";\r
+    }\r
+    ui->syncUrlLineEdit->setText(syncUrl);\r
     ui->syncUsernameLineEdit->setFocus(Qt::ActiveWindowFocusReason);\r
 }\r
 \r