Skip to content

Commit

Permalink
Merge pull request #17 from sucksome/master
Browse files Browse the repository at this point in the history
fix: allow removing first premise
  • Loading branch information
kovzol authored Nov 11, 2023
2 parents 027dfa8 + 935a880 commit dcbb5c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qt/ProofArea.qml
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,12 @@ Item {

Action {
text: "Remove this Line"
enabled: (index !== 0)
enabled: !((premiseCount == listView.count)
&& (listView.count == 1))

onTriggered: {

if (type === "premise")
premiseCount--
var i = index
theData.removeLineAt(index)
proofModel.updateLines()
Expand Down

0 comments on commit dcbb5c0

Please sign in to comment.