summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-25 18:50:22 (UTC)
committer zecke <zecke>2002-06-25 18:50:22 (UTC)
commitcfd080ed605cdfc878f8a5e519ac53fc331092d9 (patch) (unidiff)
tree16ad000a505fe836ccd94fc6d6cfbf6fbacfa4e4
parentbb392a72fd6071e76ca0c103637d6bb9eed59d3a (diff)
downloadopie-cfd080ed605cdfc878f8a5e519ac53fc331092d9.zip
opie-cfd080ed605cdfc878f8a5e519ac53fc331092d9.tar.gz
opie-cfd080ed605cdfc878f8a5e519ac53fc331092d9.tar.bz2
fix a bug spotted by treke. A ne Task got rejected when only the summary
was filled with text
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/todoentryimpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp
index 6af229c..89f08e0 100644
--- a/core/pim/todo/todoentryimpl.cpp
+++ b/core/pim/todo/todoentryimpl.cpp
@@ -157,13 +157,14 @@ void NewTaskDialog::slotCopy()
157 157
158*/ 158*/
159 159
160void NewTaskDialog::accept() 160void NewTaskDialog::accept()
161{ 161{
162 QString strText = txtTodo->text(); 162 QString strText = txtTodo->text();
163 if ( strText.isEmpty() ) { 163 QString strSumm = lneSum->text();
164 if ( strSumm.isEmpty() && strText.isEmpty() ) {
164 // hmm... just decline it then, the user obviously didn't care about it 165 // hmm... just decline it then, the user obviously didn't care about it
165 QDialog::reject(); 166 QDialog::reject();
166 return; 167 return;
167 } 168 }
168 QDialog::accept(); 169 QDialog::accept();
169} 170}