mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
Make sure python is not required on startup (Windows)
This commit is contained in:
parent
b8797d075f
commit
eaac9180e5
@ -99,7 +99,11 @@ SearchEngine::SearchEngine(MainWindow *parent) : QWidget(parent), mp_mainWindow(
|
||||
connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_search_button_clicked()));
|
||||
// Update nova.py search plugin if necessary
|
||||
updateNova();
|
||||
supported_engines = new SupportedEngines();
|
||||
supported_engines = new SupportedEngines(
|
||||
#ifdef Q_WS_WIN
|
||||
has_python
|
||||
#endif
|
||||
);
|
||||
// Fill in category combobox
|
||||
fillCatCombobox();
|
||||
connect(search_pattern, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayPatternContextMenu(QPoint)));
|
||||
|
@ -105,8 +105,9 @@ signals:
|
||||
void newSupportedEngine(QString name);
|
||||
|
||||
public:
|
||||
SupportedEngines() {
|
||||
update();
|
||||
SupportedEngines(bool has_python = true) {
|
||||
if(has_python)
|
||||
update();
|
||||
}
|
||||
|
||||
~SupportedEngines() {
|
||||
|
Loading…
Reference in New Issue
Block a user