mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
GreaseMonkey: Disable building JSObject
This commit is contained in:
parent
bb995d7984
commit
f95d46953f
@ -15,7 +15,7 @@ SOURCES += gm_plugin.cpp \
|
||||
settings/gm_settingslistdelegate.cpp \
|
||||
settings/gm_settingsscriptinfo.cpp \
|
||||
settings/gm_settingslistwidget.cpp \
|
||||
gm_jsobject.cpp \
|
||||
# gm_jsobject.cpp \
|
||||
gm_icon.cpp
|
||||
|
||||
HEADERS += gm_plugin.h \
|
||||
@ -29,7 +29,7 @@ HEADERS += gm_plugin.h \
|
||||
settings/gm_settingslistdelegate.h \
|
||||
settings/gm_settingsscriptinfo.h \
|
||||
settings/gm_settingslistwidget.h \
|
||||
gm_jsobject.h \
|
||||
# gm_jsobject.h \
|
||||
gm_icon.h
|
||||
|
||||
FORMS += \
|
||||
|
@ -18,7 +18,6 @@
|
||||
#include "gm_manager.h"
|
||||
#include "gm_script.h"
|
||||
#include "gm_downloader.h"
|
||||
#include "gm_jsobject.h"
|
||||
#include "gm_icon.h"
|
||||
#include "settings/gm_settings.h"
|
||||
|
||||
@ -38,7 +37,7 @@
|
||||
GM_Manager::GM_Manager(const QString &sPath, QObject* parent)
|
||||
: QObject(parent)
|
||||
, m_settingsPath(sPath)
|
||||
, m_jsObject(new GM_JSObject(this))
|
||||
//, m_jsObject(new GM_JSObject(this))
|
||||
{
|
||||
QTimer::singleShot(0, this, SLOT(load()));
|
||||
}
|
||||
@ -215,7 +214,7 @@ void GM_Manager::load()
|
||||
}
|
||||
|
||||
m_bootstrap = QzTools::readAllFileContents(":gm/data/bootstrap.min.js");
|
||||
m_jsObject->setSettingsFile(m_settingsPath + QL1S("/extensions.ini"));
|
||||
//m_jsObject->setSettingsFile(m_settingsPath + QL1S("/extensions.ini"));
|
||||
}
|
||||
|
||||
bool GM_Manager::canRunOnScheme(const QString &scheme)
|
||||
|
@ -29,7 +29,6 @@ class QNetworkRequest;
|
||||
|
||||
class BrowserWindow;
|
||||
class GM_Script;
|
||||
class GM_JSObject;
|
||||
class GM_Settings;
|
||||
class GM_Icon;
|
||||
|
||||
@ -77,7 +76,7 @@ private:
|
||||
QPointer<GM_Settings> m_settings;
|
||||
|
||||
QStringList m_disabledScripts;
|
||||
GM_JSObject* m_jsObject;
|
||||
//GM_JSObject* m_jsObject;
|
||||
QList<GM_Script*> m_scripts;
|
||||
|
||||
QHash<BrowserWindow*, GM_Icon*> m_windows;
|
||||
|
Loading…
Reference in New Issue
Block a user