diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-16 17:35:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-16 17:35:51 +0100 |
| commit | f5c8aa4a7dd65eb9c343cd88d6dcad2354b73808 (patch) | |
| tree | b003adfada121a8827510e8980e53e0acadf0228 /src/tools | |
| parent | cf7b7beb82606ca9a961bb705a3e2c550808b961 (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 b7f9fcbec..7877b1cb6 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -492,6 +492,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 (); @@ -1508,8 +1509,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)); |
