From cad0a64078ff2d8f89ad0a214f0a5e88e61103ff Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 27 Aug 2015 21:25:52 +0200 Subject: [PATCH] GUI: chapters: assign proper values for bitfield-like flags Fixes the mass modification dialog's actions (shifting not working at all, combining several resulting in the actions being executed). --- ChangeLog | 7 +++++++ .../chapter_editor/mass_modification_dialog.h | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 179f43beb..43fa3ebff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-08-27 Moritz Bunkus + + * MKVToolNix GUI: chapter editor bug fix: the »shift timecodes« + action in the mass modification dialog wasn't working at all, and + selecting multiple actions in the dialog would result in wrong + actions being executed. + 2015-08-23 Moritz Bunkus * MKVToolNix GUI: chapter editor enhancement: when loading simple/ diff --git a/src/mkvtoolnix-gui/chapter_editor/mass_modification_dialog.h b/src/mkvtoolnix-gui/chapter_editor/mass_modification_dialog.h index a4f542685..9ab631757 100644 --- a/src/mkvtoolnix-gui/chapter_editor/mass_modification_dialog.h +++ b/src/mkvtoolnix-gui/chapter_editor/mass_modification_dialog.h @@ -16,12 +16,12 @@ class MassModificationDialog : public QDialog { Q_OBJECT; public: enum Action { - Shift, - Sort, - Constrict, - Expand, - SetLanguage, - SetCountry, + Shift = 0x01, + Sort = 0x02, + Constrict = 0x04, + Expand = 0x08, + SetLanguage = 0x10, + SetCountry = 0x20, }; Q_DECLARE_FLAGS(Actions, Action);