logic: Use all available cores when setting indexer threads to 0 (issue #342)

This commit is contained in:
malte_langkabel
2017-04-11 13:42:20 +02:00
parent 498933d0aa
commit c78fe0d8d4
7 changed files with 64 additions and 5 deletions
@@ -3,6 +3,7 @@
#include <QCheckBox>
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include "qt/element/QtFontPicker.h"
@@ -31,6 +32,7 @@ private slots:
void javaPathDetectionClicked();
void mavenPathDetectionClicked();
void loggingEnabledChanged();
void indexerThreadsChanges(int index);
private:
void addJavaPathDetection(QGridLayout* layout, int& row);
@@ -65,6 +67,7 @@ private:
QLineEdit* m_pluginPort;
QComboBox* m_threads;
QLabel* m_threadsInfoLabel;
std::shared_ptr<CombinedPathDetector> m_javaPathDetector;
std::shared_ptr<CombinedPathDetector> m_mavenPathDetector;