Ref T107, some minor fixes while investigating T107

This commit is contained in:
Klaus Basan
2017-07-12 16:38:01 +02:00
committed by Mathew Sutcliffe
parent 880cedec5d
commit 0e3a06c24e
6 changed files with 11 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
*/
#include "blackgui/pluginselector.h"
#include "blackmisc/verify.h"
#include <QCheckBox>
#include <QHBoxLayout>
@@ -36,6 +37,10 @@ namespace BlackGui
void CPluginSelector::addPlugin(const QString &identifier, const QString &name, bool hasConfig, bool enabled)
{
// skip if identifier is missing, which should normally not happen
BLACK_VERIFY_X(!identifier.isEmpty(), Q_FUNC_INFO, "Missing identifier");
if (identifier.isEmpty()) { return; }
QWidget *pw = new QWidget;
QHBoxLayout *layout = new QHBoxLayout;
layout->setContentsMargins(0, 0, 0, 0);