]> vaikene.ee Git - evaf/commitdiff
Fixed date/time edit call-back that only allowed conversion
authorEnar Väikene <enar@vaikene.net>
Fri, 6 Jun 2014 05:42:13 +0000 (08:42 +0300)
committerEnar Väikene <enar@vaikene.net>
Fri, 6 Jun 2014 05:42:13 +0000 (08:42 +0300)
from ISO to ASD, but not from ASD to ISO.

src/apps/ScosTime/gui.cpp

index e8c2ae9d1d6f2a40dbbb390cae20a6d97096865c..6b4b1163d1278c5ff19852b56fb57600f13c1cb1 100644 (file)
@@ -428,7 +428,7 @@ void Module::dateTimeEdited(QString const & s)
         wConvertDateTime->setEnabled(true);
         wConvertDateTime->setText(tr("&to ASD", VER_MODULE_NAME_STR));
     }
-    else if (mDateTime.type() == Internal::DateTime::ISO)
+    else if (mDateTime.type() == Internal::DateTime::ASD)
     {
         wConvertDateTime->setEnabled(true);
         wConvertDateTime->setText(tr("&to ISO", VER_MODULE_NAME_STR));