[vdr-plugin-dvdswitch] 01/04: Imported Upstream version 0.2.2+git20150216
Tobias Grimm
tiber-guest at moszumanska.debian.org
Mon Feb 16 21:38:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
tiber-guest pushed a commit to branch master
in repository vdr-plugin-dvdswitch.
commit 3486464813e3fc3c139abfb2d55cf5f30151c047
Author: etobi <git at e-tobi.net>
Date: Mon Feb 16 22:35:44 2015 +0100
Imported Upstream version 0.2.2+git20150216
---
.gitignore | 6 ++++++
commands.c | 14 ++++++++------
dvdswitch.c | 2 +-
3 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0130458
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*.o
+.dependencies
+*.so
+*.mo
+*.pot
+*.tgz
\ No newline at end of file
diff --git a/commands.c b/commands.c
index db3c6dc..ad795af 100644
--- a/commands.c
+++ b/commands.c
@@ -394,10 +394,11 @@ eOSState cCMDDir::New(void)
eOSState cCMDDir::New(eKeys Key)
{
+ eOSState state = cOsdMenu::ProcessKey(Key);
switch(Key)
{
case kOk:
- if(!isempty(Dir))
+ if(state == osUnknown && !isempty(Dir))
{
char *buffer = NULL;
if(0 < asprintf(&buffer, "%s/%s", CurrentDir(), stripspace(Dir))) {
@@ -431,7 +432,7 @@ eOSState cCMDDir::New(eKeys Key)
break;
}
- return cOsdMenu::ProcessKey(Key);
+ return state;
}
@@ -484,10 +485,11 @@ eOSState cCMDDir::Edit(cMainMenuItem *mItem)
eOSState cCMDDir::Edit(eKeys Key)
{
+ eOSState state = cOsdMenu::ProcessKey(Key);
switch(Key)
{
case kOk:
- if(!isempty(Dir))
+ if(state == osUnknown && !isempty(Dir))
{
char *buffer = NULL;
if(0 < asprintf(&buffer, "%s/%s", CurrentDir(), stripspace(Dir))) {
@@ -520,7 +522,7 @@ eOSState cCMDDir::Edit(eKeys Key)
break;
}
- return cOsdMenu::ProcessKey(Key);
+ return state;
}
// --- cCMDMove -------------------------------------------------------------
@@ -793,13 +795,13 @@ void cCMDImageRead::SetHelp(void)
eOSState cCMDImageRead::ProcessKey(eKeys Key)
{
+ eOSState state = cOsdMenu::ProcessKey(Key);
if(!HasSubMenu())
{
switch(Key & ~k_Repeat)
{
case kUp:
case kDown:
- cOsdMenu::ProcessKey(Key);
SetHelp();
return osContinue;
case kRight:
@@ -860,7 +862,7 @@ eOSState cCMDImageRead::ProcessKey(eKeys Key)
}
}
- return cOsdMenu::ProcessKey(Key);
+ return state;
}
diff --git a/dvdswitch.c b/dvdswitch.c
index b2a0ffe..edcd6cc 100644
--- a/dvdswitch.c
+++ b/dvdswitch.c
@@ -18,7 +18,7 @@
#error "VDR-1.6.0 API version or greater is required!"
#endif
-static const char *VERSION = "0.2.2";
+static const char *VERSION = "0.2.3";
class cPluginDvdswitch : public cPlugin {
private:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vdr-dvb/vdr-plugin-dvdswitch.git
More information about the pkg-vdr-dvb-changes
mailing list