mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed positioning the cursor in the Recordings menu when moving a recording between different volumes
This commit is contained in:
parent
91774cf074
commit
990bc6a11f
2
HISTORY
2
HISTORY
@ -9210,3 +9210,5 @@ Video Disk Recorder Revision History
|
|||||||
destroyed.
|
destroyed.
|
||||||
- Fixed a possible crash when moving a recording between different volumes (reported by
|
- Fixed a possible crash when moving a recording between different volumes (reported by
|
||||||
Matthias Senzel).
|
Matthias Senzel).
|
||||||
|
- Fixed positioning the cursor in the Recordings menu when moving a recording between
|
||||||
|
different volumes.
|
||||||
|
8
menu.c
8
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 4.45 2017/11/26 15:07:00 kls Exp $
|
* $Id: menu.c 4.46 2017/11/27 15:19:07 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2960,8 +2960,10 @@ void cMenuRecordings::Set(bool Refresh)
|
|||||||
const char *CurrentRecording = *fileName ? *fileName : cReplayControl::LastReplayed();
|
const char *CurrentRecording = *fileName ? *fileName : cReplayControl::LastReplayed();
|
||||||
cRecordings *Recordings = cRecordings::GetRecordingsWrite(recordingsStateKey); // write access is necessary for sorting!
|
cRecordings *Recordings = cRecordings::GetRecordingsWrite(recordingsStateKey); // write access is necessary for sorting!
|
||||||
cMenuRecordingItem *LastItem = NULL;
|
cMenuRecordingItem *LastItem = NULL;
|
||||||
if (cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current()))
|
if (!CurrentRecording) {
|
||||||
CurrentRecording = ri->Recording()->FileName();
|
if (cMenuRecordingItem *ri = (cMenuRecordingItem *)Get(Current()))
|
||||||
|
CurrentRecording = ri->Recording()->FileName();
|
||||||
|
}
|
||||||
int current = Current();
|
int current = Current();
|
||||||
Clear();
|
Clear();
|
||||||
GetRecordingsSortMode(DirectoryName());
|
GetRecordingsSortMode(DirectoryName());
|
||||||
|
Loading…
Reference in New Issue
Block a user