File tree 4 files changed +12
-0
lines changed
4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ impl Window {
65
65
// Get content from entry and clear it
66
66
let buffer = self . imp ( ) . entry . buffer ( ) ;
67
67
let content = buffer. text ( ) ;
68
+ if content. is_empty ( ) {
69
+ return ;
70
+ }
68
71
buffer. set_text ( "" ) ;
69
72
70
73
// Add new task to model
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ impl Window {
127
127
// Get content from entry and clear it
128
128
let buffer = self . imp ( ) . entry . buffer ( ) ;
129
129
let content = buffer. text ( ) ;
130
+ if content. is_empty ( ) {
131
+ return ;
132
+ }
130
133
buffer. set_text ( "" ) ;
131
134
132
135
// Add new task to model
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ impl Window {
119
119
// Get content from entry and clear it
120
120
let buffer = self . imp ( ) . entry . buffer ( ) ;
121
121
let content = buffer. text ( ) ;
122
+ if content. is_empty ( ) {
123
+ return ;
124
+ }
122
125
buffer. set_text ( "" ) ;
123
126
124
127
// Add new task to model
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ impl Window {
116
116
// Get content from entry and clear it
117
117
let buffer = self . imp ( ) . entry . buffer ( ) ;
118
118
let content = buffer. text ( ) ;
119
+ if content. is_empty ( ) {
120
+ return ;
121
+ }
119
122
buffer. set_text ( "" ) ;
120
123
121
124
// Add new task to model
You can’t perform that action at this time.
0 commit comments