From 9fb61963b55e9377cc7b3da926d904c5bd49b867 Mon Sep 17 00:00:00 2001 From: dorian Date: Sun, 17 Feb 2019 20:50:51 +0100 Subject: [PATCH] - fixed bug that made 'tomorrow' button always show todays events --- android-sources/AndroidManifest.xml | 2 +- qml/Forms/HomeForm.qml | 2 +- sources/serverconn.cpp | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/android-sources/AndroidManifest.xml b/android-sources/AndroidManifest.xml index c33622c..47e4724 100644 --- a/android-sources/AndroidManifest.xml +++ b/android-sources/AndroidManifest.xml @@ -1,5 +1,5 @@ - + diff --git a/qml/Forms/HomeForm.qml b/qml/Forms/HomeForm.qml index ade04d8..5208648 100644 --- a/qml/Forms/HomeForm.qml +++ b/qml/Forms/HomeForm.qml @@ -70,7 +70,7 @@ Page { height: mainMenu.buttonHeight onClicked: { - formStack.eventDay = 0 + formStack.eventDay = 1 formStack.push(eventForm) } } diff --git a/sources/serverconn.cpp b/sources/serverconn.cpp index f919715..9a8facc 100644 --- a/sources/serverconn.cpp +++ b/sources/serverconn.cpp @@ -154,6 +154,8 @@ int ServerConn::getEvents(QString day) pdata.addQueryItem("mode", pGlobalAppSettings->loadSetting("teacherMode") == "true" ? "1":"0"); pdata.addQueryItem("day", day); + qDebug() << day; + // send the request ReturnData_t ret = this->senddata(QUrl("http://www.fanny-leicht.de/j34/templates/g5_helium/intern/events.php"), pdata);