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).
This commit is contained in:
Moritz Bunkus 2015-08-27 21:25:52 +02:00
parent 85323d89b0
commit cad0a64078
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2015-08-27 Moritz Bunkus <moritz@bunkus.org>
* 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 <moritz@bunkus.org>
* MKVToolNix GUI: chapter editor enhancement: when loading simple/

View File

@ -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);