diff options
author | Timo Eskola <timo@tolleri.net> | 2018-10-02 11:02:10 +0300 |
---|---|---|
committer | Timo Eskola <timo@tolleri.net> | 2018-10-02 11:02:10 +0300 |
commit | 68739fd72beb9745b3e47b9e466311ef23a8ca97 (patch) | |
tree | 8ee07082c71e6fbcbde9e3f715e5ef2f720748d5 | |
parent | eb2e8591e2e79ac456f0edabda644586ad6a520b (diff) | |
download | vdr-plugin-duplicates-vdr2.4.0.tar.gz vdr-plugin-duplicates-vdr2.4.0.tar.bz2 |
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | duplicates.c | 2 | ||||
-rw-r--r-- | recording.c | 8 | ||||
-rw-r--r-- | recording.h | 2 |
4 files changed, 13 insertions, 2 deletions
@@ -1,6 +1,9 @@ VDR Plugin 'duplicates' Revision History ---------------------------------------- +2018-10-02: Version 1.0.1 +- Fixed header row when after deleting or hiding recordings. + 2018-09-07: Version 1.0.0 - Dropped support for VDR 2.2.0. - Added scanner thread for duplicates. diff --git a/duplicates.c b/duplicates.c index 7ffbeff..3b62b82 100644 --- a/duplicates.c +++ b/duplicates.c @@ -12,7 +12,7 @@ #include "menu.h" #include "recording.h" -static const char *VERSION = "1.0.0"; +static const char *VERSION = "1.0.1"; static const char *DESCRIPTION = trNOOP("Shows duplicate recordings"); static const char *MAINMENUENTRY = trNOOP("Duplicate recordings"); diff --git a/recording.c b/recording.c index 0217b1e..887c879 100644 --- a/recording.c +++ b/recording.c @@ -66,6 +66,14 @@ cDuplicateRecording::~cDuplicateRecording() { delete duplicates; } +bool cDuplicateRecording::HasDescription(void) const { + if (!description.empty()) + return true; + else if (duplicates && duplicates->First()) + return duplicates->First()->HasDescription(); + return false; +} + bool cDuplicateRecording::IsDuplicate(cDuplicateRecording *DuplicateRecording) { if (!HasDescription() || !DuplicateRecording->HasDescription()) return false; diff --git a/recording.h b/recording.h index 18a666f..e473cd5 100644 --- a/recording.h +++ b/recording.h @@ -29,7 +29,7 @@ public: cDuplicateRecording(const cRecording *Recording); cDuplicateRecording(const cDuplicateRecording &DuplicateRecording); ~cDuplicateRecording(); - bool HasDescription(void) const { return ! description.empty(); } + bool HasDescription(void) const; bool IsDuplicate(cDuplicateRecording *DuplicateRecording); void SetChecked(bool chkd = true) { checked = chkd; } bool Checked() { return checked; } |