From 73273ca54fbcc5ed359c4ab41587d683b8cbe8d2 Mon Sep 17 00:00:00 2001 From: byloveletter Date: Wed, 31 May 2017 10:19:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=A4=EC=A0=95,=20=EC=A6=90=EA=B2=A8?= =?UTF-8?q?=EC=B0=BE=EA=B8=B0=20=EC=A0=80=EC=9E=A5=20=EC=8B=9C=20=EC=8B=B1?= =?UTF-8?q?=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/config.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/gui/oven_control/config.cpp b/app/gui/oven_control/config.cpp index 49fa55c..6751707 100644 --- a/app/gui/oven_control/config.cpp +++ b/app/gui/oven_control/config.cpp @@ -22,6 +22,7 @@ #include "backlight.h" #include "udphandler.h" #include "system.h" +#include "unistd.h" using namespace Define; using namespace System; @@ -131,6 +132,7 @@ bool Config::saveConfig(void){ if(file.open(QIODevice::WriteOnly)){ writelen = file.write(buff,sizeof(config_lists)+1); file.close(); + sync(); if(writelen == (sizeof(config_lists)+1)){ qDebug() << "config file saved"; return true; @@ -339,6 +341,7 @@ bool Config::saveFavorite(void){ qDebug() << "save favorite index" << itemp; } file.close(); + sync(); qDebug()<<"saving Favorite menu success"; return true; } -- 2.1.4