diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-19 23:57:24 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-19 23:57:24 +0100 |
| commit | 8f3743d18026b59b1ecd8e8f4d12cc59273eb1ed (patch) | |
| tree | 9a3a07b554898e2089e1ba897f64fdefcb14db64 /src/lib/ratio.h | |
| parent | 26cd966b7ae60673dd597eafa75860a5b5eb74c6 (diff) | |
Cope nicely if the user has a configured default container ratio which is now disallowed.
Diffstat (limited to 'src/lib/ratio.h')
| -rw-r--r-- | src/lib/ratio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ratio.h b/src/lib/ratio.h index 42f29458a..a6f2bbd73 100644 --- a/src/lib/ratio.h +++ b/src/lib/ratio.h @@ -46,6 +46,10 @@ public: std::string container_nickname () const; + bool used_for_container () const { + return static_cast<bool> (_container_nickname); + } + std::string isdcf_name () const { return _isdcf_name; } |
