From 0eaf4f952b19abb318a6aab2c968794ec0c1d19d Mon Sep 17 00:00:00 2001 From: Vadim Kuznetsov Date: Wed, 14 Sep 2022 18:09:45 +0300 Subject: [PATCH] Switch to v1.0.0 #150 --- VERSION | 2 +- qucs/misc.cpp | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/VERSION b/VERSION index b056f4120..3eefcb9dd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.24 +1.0.0 diff --git a/qucs/misc.cpp b/qucs/misc.cpp index 729522e6b..ce58ba751 100644 --- a/qucs/misc.cpp +++ b/qucs/misc.cpp @@ -464,14 +464,8 @@ bool misc::Verilog_Time(QString& t, const QString& Name) // ######################################################################### bool misc::checkVersion(QString& Line) { - QStringList sl = QString(PACKAGE_VERSION).split('.'); - QStringList ll = Line.split('.'); - if (ll.count() != 3 || sl.count() != 3) - return false; - int sv = (int)sl.at(1).toLongLong()*10000+sl.at(2).toLongLong()*100; - int lv = (int)ll.at(1).toLongLong()*10000+ll.at(2).toLongLong()*100; - if(lv > sv) // wrong version number ? (only backward compatible) - return false; + VersionTriplet SchVersion(Line); + if (SchVersion > QucsVersion) return false; return true; }