diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 17:35:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 01:44:15 +0200 |
| commit | 04f8ba59d17e726570b4c1f361f10c7548fbe5c2 (patch) | |
| tree | 921748170f4c000d5c7bd5ce3440bbfb149e3c08 /src/tools | |
| parent | 3cbc5434edfd0eff96d4e25313d1dfcde478070c (diff) | |
Put * in the title bar when the DCP-o-matic project is modified (#1938).
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index a14a27343..8455163bb 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -495,6 +495,7 @@ public: if (_film) { _film->Change.connect (boost::bind (&DOMFrame::film_change, this, _1)); _film->Message.connect (boost::bind(&DOMFrame::film_message, this, _1)); + _film->DirtyChange.connect (boost::bind(&DOMFrame::set_title, this)); dcpomatic_log = _film->log (); } set_title (); @@ -1528,8 +1529,13 @@ private: void set_title () { auto s = wx_to_std(_("DCP-o-matic")); - if (_film && _film->directory()) { - s += " - " + _film->directory()->string(); + if (_film) { + if (_film->directory()) { + s += " - " + _film->directory()->string(); + } + if (_film->dirty()) { + s += " *"; + } } SetTitle (std_to_wx(s)); |
