From b5a395eee653b75eed8bd578ca42df1a9c25e62d Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Wed, 24 Jul 2013 13:48:31 -0400 Subject: [PATCH] allow plugin to be manually specified --- openbr/openbr_plugin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index 0ecf867..2631d6f 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -814,7 +814,8 @@ struct Factory //! [Factory make] static T *make(const File &file) { - QString name = file.suffix(); + QString name = file.get("plugin", ""); + if (name.isEmpty()) name = file.suffix(); if (!names().contains(name)) { if (names().contains("Empty") && name.isEmpty()) name = "Empty"; else if (names().contains("Default")) name = "Default"; -- libgit2 0.21.4