DeckEditor: Initialize the modified flag (#5743)

C++ does not require compilers to zero-initialize value types, so
depending on the platform (here: Linux), the deck editor starts up with
an uninitialized value in the `modified` flag, which is usually not
zero.
This commit is contained in:
Basile Clement 2025-03-18 02:43:14 +01:00 committed by GitHub
parent 57b9f0e54c
commit 4812508afc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,7 +147,7 @@ protected:
QAction *aCardInfoDockVisible, *aCardInfoDockFloating, *aDeckDockVisible, *aDeckDockFloating;
QAction *aFilterDockVisible, *aFilterDockFloating, *aPrintingSelectorDockVisible, *aPrintingSelectorDockFloating;
bool modified;
bool modified = false;
};
#endif // TAB_GENERIC_DECK_EDITOR_H