diff -Nru openambit-0.3/debian/changelog openambit-0.3/debian/changelog --- openambit-0.3/debian/changelog 2015-11-18 18:54:55.000000000 +0000 +++ openambit-0.3/debian/changelog 2015-12-07 15:30:09.000000000 +0000 @@ -1,3 +1,9 @@ +openambit (0.3-1ubuntu0~git20151118~ppa2) trusty; urgency=medium + + * Add patch from PR #107 to fix automatic sync with Movescount. + + -- Dominik Stadler (Ubuntu key) Mon, 07 Dec 2015 16:29:27 +0100 + openambit (0.3-1ubuntu0~git20151118~ppa1) trusty; urgency=medium * Update to latest version from git diff -Nru openambit-0.3/debian/package.sh openambit-0.3/debian/package.sh --- openambit-0.3/debian/package.sh 2015-06-14 08:00:02.000000000 +0000 +++ openambit-0.3/debian/package.sh 2015-12-07 15:32:03.000000000 +0000 @@ -16,7 +16,7 @@ echo "Create diff" && \ diff -Nur -x debian -x .git -x .gitignore -x .pc . ../openambit.git > debian/patches/01_git${DATE}.patch ; \ echo "Series" && \ -echo -e "01_git${DATE}.patch\ninstall_example" > debian/patches/series && \ +echo -e "01_git${DATE}.patch\ninstall_example\npr107.patch" > debian/patches/series && \ \ \ echo "All done" diff -Nru openambit-0.3/debian/patches/pr107.patch openambit-0.3/debian/patches/pr107.patch --- openambit-0.3/debian/patches/pr107.patch 1970-01-01 00:00:00.000000000 +0000 +++ openambit-0.3/debian/patches/pr107.patch 2015-12-07 15:29:14.000000000 +0000 @@ -0,0 +1,18 @@ +Index: openambit/src/openambit/mainwindow.cpp +=================================================================== +--- openambit.orig/src/openambit/mainwindow.cpp 2015-12-07 16:29:12.477817298 +0100 ++++ openambit/src/openambit/mainwindow.cpp 2015-12-07 16:29:12.473817268 +0100 +@@ -289,10 +289,11 @@ + } + + settings.beginGroup("syncSettings"); +- if (settings.value("syncAutomatically", false).toBool()) { ++ bool syncAutomatically = settings.value("syncAutomatically", false).toBool(); ++ settings.endGroup(); ++ if (syncAutomatically) { + startSync(); + } +- settings.endGroup(); + } + } + diff -Nru openambit-0.3/debian/patches/series openambit-0.3/debian/patches/series --- openambit-0.3/debian/patches/series 2015-11-18 18:46:27.000000000 +0000 +++ openambit-0.3/debian/patches/series 2015-12-07 15:28:32.000000000 +0000 @@ -1,2 +1,3 @@ 01_git20151118.patch install_example +pr107.patch