From cfd080ed605cdfc878f8a5e519ac53fc331092d9 Mon Sep 17 00:00:00 2001
From: zecke <zecke>
Date: Tue, 25 Jun 2002 18:50:22 +0000
Subject: fix a bug spotted by treke. A ne Task got rejected when only the summary

was filled with text
---
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
@@ -160,7 +160,8 @@ void NewTaskDialog::slotCopy()
 void NewTaskDialog::accept()
 {
     QString strText = txtTodo->text();
-    if ( strText.isEmpty() ) {
+    QString strSumm = lneSum->text();
+    if ( strSumm.isEmpty() && strText.isEmpty() ) {
        // hmm... just decline it then, the user obviously didn't care about it
        QDialog::reject();
        return;
--
cgit v0.9.0.2