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. 5
      src/searchengine/supportedengines.h

6
src/searchengine/searchengine.cpp

@ -99,7 +99,11 @@ SearchEngine::SearchEngine(MainWindow *parent) : QWidget(parent), mp_mainWindow( @@ -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)));

5
src/searchengine/supportedengines.h

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

Loading…
Cancel
Save