Skip to content

Commit dcbb5c0

Browse files
authored
Merge pull request #17 from sucksome/master
fix: allow removing first premise
2 parents 027dfa8 + 935a880 commit dcbb5c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qt/ProofArea.qml

+4-2
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,12 @@ Item {
455455

456456
Action {
457457
text: "Remove this Line"
458-
enabled: (index !== 0)
458+
enabled: !((premiseCount == listView.count)
459+
&& (listView.count == 1))
459460

460461
onTriggered: {
461-
462+
if (type === "premise")
463+
premiseCount--
462464
var i = index
463465
theData.removeLineAt(index)
464466
proofModel.updateLines()

0 commit comments

Comments
 (0)