Lubomir I. Ivanov 26d2cc0fef MainWindow: fix setTitle() calls
setTitle() works with an enum that can be fed different values,
and other we may have eventually. For example not only "app title",
or "app title: filename", but others, like dates, certain app status
and so on.

Patch fixes an issue where deleting a single dive in the divelist
resets the title to "Subsurface" only. clearUpEmpty() should only
call setTitle(MWTF_DEFAULT) if no file is currently open.

It also adds a safe-guard to revert back to MWTF_DEFAULT if
no file is open but setTitle is called with MWTF_FILENAME.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-12-05 08:04:55 -08:00
..
2013-09-02 05:57:08 -03:00
2013-11-29 12:11:12 -08:00
2013-12-03 20:55:00 -08:00
2013-12-03 20:55:00 -08:00
2013-12-04 15:49:55 -08:00
2013-10-15 04:37:31 -07:00
2013-12-04 12:41:07 -08:00
2013-12-04 15:49:55 -08:00
2013-12-04 15:49:55 -08:00
2013-12-04 15:49:55 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 12:01:32 -08:00
2013-11-30 09:24:59 -08:00
2013-11-30 09:24:59 -08:00
2013-12-04 16:29:55 -08:00