mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T107, some minor fixes while investigating T107
This commit is contained in:
committed by
Mathew Sutcliffe
parent
880cedec5d
commit
0e3a06c24e
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user