Commit dae485b5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't clear line edit when we finish editing

CCBUG: 429546
parent 83a83c86
Pipeline #41896 failed with stage
in 6 minutes and 17 seconds
...@@ -266,7 +266,6 @@ void EventEdit::slotReturnPressed() ...@@ -266,7 +266,6 @@ void EventEdit::slotReturnPressed()
if (!mEventEdit->text().trimmed().isEmpty()) { if (!mEventEdit->text().trimmed().isEmpty()) {
KCalendarCore::Event::Ptr event = createEventItem(); KCalendarCore::Event::Ptr event = createEventItem();
Q_EMIT createEvent(event, collection); Q_EMIT createEvent(event, collection);
mEventEdit->clear();
hide(); hide();
} }
} }
......
...@@ -202,7 +202,6 @@ void NoteEdit::slotReturnPressed() ...@@ -202,7 +202,6 @@ void NoteEdit::slotReturnPressed()
Akonadi::NoteUtils::NoteMessageWrapper note; Akonadi::NoteUtils::NoteMessageWrapper note;
note.setTitle(mNoteEdit->text()); note.setTitle(mNoteEdit->text());
Q_EMIT createNote(note.message(), collection); Q_EMIT createNote(note.message(), collection);
mNoteEdit->clear();
hide(); hide();
} }
} }
......
...@@ -238,7 +238,6 @@ void TodoEdit::slotReturnPressed() ...@@ -238,7 +238,6 @@ void TodoEdit::slotReturnPressed()
mMsgWidget->setText(i18nc("%1 is summary of the todo, %2 is name of the folder in which it is stored", mMsgWidget->setText(i18nc("%1 is summary of the todo, %2 is name of the folder in which it is stored",
"New todo '%1' was added to task list '%2'", mNoteEdit->text(), collection.displayName())); "New todo '%1' was added to task list '%2'", mNoteEdit->text(), collection.displayName()));
KCalendarCore::Todo::Ptr todo = createTodoItem(); KCalendarCore::Todo::Ptr todo = createTodoItem();
mNoteEdit->clear();
// We don't hide the widget here, so that multiple todo's can be added // We don't hide the widget here, so that multiple todo's can be added
Q_EMIT createTodo(todo, collection); Q_EMIT createTodo(todo, collection);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment