Skip to content

Commit 749774a

Browse files
authored
Merge pull request #20 from matfantinel/fix-crash-new-reminder
Fix crash when adding new reminder
2 parents e32b9ac + df4c7c4 commit 749774a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

data/com.github.matfantinel.reminduck.appdata.xml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<name>Reminduck</name>
88
<summary>Remember your stuff in an adorably annoying way.</summary>
99
<description>
10-
<p>Reminduck is a simple reminder app made to be quick and easy - it focuses on simple reminders with set time and date and nothing else.</p>
10+
<p>Reminduck is a simple reminder app made to be quick and easy - it focuses on simple or recurrent reminders with set time and date and nothing else.</p>
1111

12-
<p>It does not aim to provide a complete control of your reminder needs (yet), but sometimes simple is just enough.</p>
12+
<p>It's perfect if all you want are simple or daily/weekly/monthly reminders. Anything more than that is not achievable by Reminduck right now - but you can help! Open an issue or a pull request if you have any ideas or requests.</p>
1313

1414
<p>And it quacks.</p>
1515
</description>

src/Database.vala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ public class Reminduck.Database {
144144
assert (param_position > 0);
145145
stmt.bind_text (param_position, reminder.recurrency_interval.to_string());
146146

147-
param_position = stmt.bind_parameter_index ("$ROWID");
148-
assert (param_position > 0);
149-
stmt.bind_text (param_position, reminder.rowid);
147+
if (!is_new) {
148+
param_position = stmt.bind_parameter_index ("$ROWID");
149+
assert (param_position > 0);
150+
stmt.bind_text (param_position, reminder.rowid);
151+
}
150152

151153
exec_query = stmt.step();
152154
if (exec_query != Sqlite.DONE) {

0 commit comments

Comments
 (0)