Skip to content

Commit

Permalink
Switch to v1.0.0 #150
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3xdh committed Sep 14, 2022
1 parent 51f3dec commit 0eaf4f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.24
1.0.0
10 changes: 2 additions & 8 deletions qucs/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0eaf4f9

Please sign in to comment.