Doing so prevents PV from starting up, so disallow it
// Background buffer size
QSpinBox *buffersize_sb = new QSpinBox();
buffersize_sb->setSuffix(tr(" lines"));
+ buffersize_sb->setMinimum(Logging::MIN_BUFFER_SIZE);
buffersize_sb->setMaximum(Logging::MAX_BUFFER_SIZE);
buffersize_sb->setValue(
settings.value(GlobalSettings::Key_Log_BufferSize).toInt());
Logging logging;
+const int Logging::MIN_BUFFER_SIZE = 10;
const int Logging::MAX_BUFFER_SIZE = 50000;
Logging::~Logging()
LogSource_srd
};
+ static const int MIN_BUFFER_SIZE;
static const int MAX_BUFFER_SIZE;
public: