Commit b67fe001 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Glen Ditchfield
Browse files

Focus on empty Title field

If the GUI reports that the Title field is empty, focus on it, for
consistency with commit 701db76d.
parent af4d75d2
Pipeline #39853 failed with stage
in 11 minutes and 24 seconds
......@@ -62,6 +62,13 @@ bool IncidenceWhatWhere::isDirty() const
}
}
void IncidenceWhatWhere::focusInvalidField()
{
if (mUi->mSummaryEdit->text().isEmpty()) {
mUi->mSummaryEdit->setFocus();
}
}
bool IncidenceWhatWhere::isValid() const
{
if (mUi->mSummaryEdit->text().isEmpty()) {
......
......@@ -34,6 +34,7 @@ public:
void save(const KCalendarCore::Incidence::Ptr &incidence) override;
Q_REQUIRED_RESULT bool isDirty() const override;
Q_REQUIRED_RESULT bool isValid() const override;
void focusInvalidField() override;
virtual void validate();
private:
......
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