1
0
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:
Christophe Dumez 2011-04-04 19:13:59 +00:00
parent b8797d075f
commit eaac9180e5
2 changed files with 8 additions and 3 deletions

View File

@ -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)));

View File

@ -105,7 +105,8 @@ signals:
void newSupportedEngine(QString name);
public:
SupportedEngines() {
SupportedEngines(bool has_python = true) {
if(has_python)
update();
}