mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: avoid spurious undo commands for date/time editing
The date and time fields of the main tab posted undo events for every date/timeChanged signal. Thus, when changing the day of the month to e.g. 21, this would result in two date change events: one to the 2nd and one to the 21st. This is very irritating. Instead listen to editingFinished() events, which thankfully exist for these widgets. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9298466037
commit
c50e58d761
2 changed files with 6 additions and 6 deletions
|
@ -57,8 +57,8 @@ slots:
|
|||
void on_notes_editingFinished();
|
||||
void on_duration_editingFinished();
|
||||
void on_depth_editingFinished();
|
||||
void on_dateEdit_dateChanged(const QDate &date);
|
||||
void on_timeEdit_timeChanged(const QTime & time);
|
||||
void on_dateEdit_editingFinished();
|
||||
void on_timeEdit_editingFinished();
|
||||
void on_rating_valueChanged(int value);
|
||||
void on_tagWidget_editingFinished();
|
||||
void hideMessage();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue