X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fapps%2FScosTime%2Fgui.cpp;h=e8c2ae9d1d6f2a40dbbb390cae20a6d97096865c;hb=0c61450fcffcb36a6e23ca5b083c26543d956084;hp=ed7f09841dbc2f0d0a729d50aa22b8e3490be1ee;hpb=66f5040b87e8071012efbc928a4f28f8bdd615b1;p=evaf
diff --git a/src/apps/ScosTime/gui.cpp b/src/apps/ScosTime/gui.cpp
index ed7f098..e8c2ae9 100644
--- a/src/apps/ScosTime/gui.cpp
+++ b/src/apps/ScosTime/gui.cpp
@@ -18,7 +18,6 @@
*/
#include "gui.h"
-#include "version.h"
#include
#include
@@ -26,11 +25,10 @@
#include
#include
-#include
+#include
VER_EXPORT_VERSION_INFO()
-Q_EXPORT_PLUGIN2(VER_MODULE_NAME_STR, eVaf::ScosTime::Module)
//-------------------------------------------------------------------
@@ -91,7 +89,8 @@ void Internal::DateTime::setEpoch(QDateTime const & epoch)
if (epoch != mEpoch)
{
- if (mDateTime.isValid())
+ // Adjust the date/time if the value was set from a CUC HEX string
+ if (mType == CUC && mDateTime.isValid())
{
qint64 diff = mEpoch.msecsTo(epoch);
mDateTime = mDateTime.addMSecs(diff);