summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/simplewidgets.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp
index 0f22ff377..9866925ef 100644
--- a/desktop-widgets/simplewidgets.cpp
+++ b/desktop-widgets/simplewidgets.cpp
@@ -412,10 +412,15 @@ void ShiftImageTimesDialog::updateInvalid()
void ShiftImageTimesDialog::timeEditChanged(const QTime &time)
{
+ QDateTimeEdit::Section timeEditSection = ui.timeEdit->currentSection();
+ ui.timeEdit->setEnabled(false);
m_amount = time.hour() * 3600 + time.minute() * 60;
if (ui.backwards->isChecked())
m_amount *= -1;
updateInvalid();
+ ui.timeEdit->setEnabled(true);
+ ui.timeEdit->setFocus();
+ ui.timeEdit->setSelectedSection(timeEditSection);
}
void ShiftImageTimesDialog::timeEditChanged()