Browse Source

Make sure python is not required on startup (Windows)

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
eaac9180e5
  1. 6
      src/searchengine/searchengine.cpp
  2. 3
      src/searchengine/supportedengines.h

6
src/searchengine/searchengine.cpp

@ -99,7 +99,11 @@ SearchEngine::SearchEngine(MainWindow *parent) : QWidget(parent), mp_mainWindow(
connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_search_button_clicked())); connect(searchTimeout, SIGNAL(timeout()), this, SLOT(on_search_button_clicked()));
// Update nova.py search plugin if necessary // Update nova.py search plugin if necessary
updateNova(); updateNova();
supported_engines = new SupportedEngines(); supported_engines = new SupportedEngines(
#ifdef Q_WS_WIN
has_python
#endif
);
// Fill in category combobox // Fill in category combobox
fillCatCombobox(); fillCatCombobox();
connect(search_pattern, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayPatternContextMenu(QPoint))); connect(search_pattern, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(displayPatternContextMenu(QPoint)));

3
src/searchengine/supportedengines.h

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

Loading…
Cancel
Save