From 47879c33481531ec4b5473fa302b692e5aceffd3 Mon Sep 17 00:00:00 2001 From: Matthew Wright Date: Mon, 13 Aug 2018 13:20:32 -0500 Subject: [PATCH] fixed two compile-time errors for rivet_GUI that occurred on some systems --- RIVET.pro | 2 +- customspinbox.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIVET.pro b/RIVET.pro index a7864018..1db8beaf 100644 --- a/RIVET.pro +++ b/RIVET.pro @@ -6,7 +6,7 @@ macx { QMAKE_CXXFLAGS+="-g -gdwarf-2 -ftemplate-depth=1024 " - QMAKE_POST_LINK='/usr/bin/dsymutil RIVET.app/Contents/MacOS/RIVET -o RIVET.app/Contents/MacOS/RIVET.dsym' + QMAKE_POST_LINK='/usr/bin/dsymutil rivet_GUI.app/Contents/MacOS/rivet_GUI -o rivet_GUI.app/Contents/MacOS/rivet_GUI.dsym' } CONFIG += c++11 debug diff --git a/customspinbox.h b/customspinbox.h index 530ff995..7e0f73bc 100644 --- a/customspinbox.h +++ b/customspinbox.h @@ -24,7 +24,7 @@ class CustomSpinBox : public QDoubleSpinBox //add in the minus sign if the value is negative, or if the user was in the middle of typing //a negative value >-1 (e.g. -0.5) - if(val<0 ||(lineEdit()->text().size()>0&& lineEdit()->text().at(0)=="-")){ + if(val<0 ||(lineEdit()->text().size()>0&& lineEdit()->text().at(0)=='-')){ str="-"+str; }