diff options
-rw-r--r-- | apps/plugins/open_plugins.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/plugins/open_plugins.c b/apps/plugins/open_plugins.c index 7a888b6af2..84d594ca9a 100644 --- a/apps/plugins/open_plugins.c +++ b/apps/plugins/open_plugins.c | |||
@@ -742,12 +742,6 @@ enum plugin_status plugin_start(const void* parameter) | |||
742 | exit = true; | 742 | exit = true; |
743 | 743 | ||
744 | items = rb->lseek(fd_dat, 0, SEEK_END) / op_entry_sz; | 744 | items = rb->lseek(fd_dat, 0, SEEK_END) / op_entry_sz; |
745 | if (items == 0 && !parameter) | ||
746 | { | ||
747 | rb->plugin_open(rb->plugin_get_current_filename(), NULL); | ||
748 | rb->close(fd_dat); | ||
749 | return PLUGIN_GOTO_PLUGIN; | ||
750 | } | ||
751 | 745 | ||
752 | if (parameter) | 746 | if (parameter) |
753 | { | 747 | { |
@@ -798,6 +792,15 @@ enum plugin_status plugin_start(const void* parameter) | |||
798 | } | 792 | } |
799 | }/* OP_EXT */ | 793 | }/* OP_EXT */ |
800 | } | 794 | } |
795 | |||
796 | if (items == 0 && !exit) | ||
797 | { | ||
798 | rb->plugin_open(rb->plugin_get_current_filename(), NULL); | ||
799 | rb->close(fd_dat); | ||
800 | return PLUGIN_GOTO_PLUGIN; | ||
801 | } | ||
802 | |||
803 | |||
801 | 804 | ||
802 | if (!exit) | 805 | if (!exit) |
803 | { | 806 | { |