From 329e8de84fc8e0a2e4a04fbaf85ab0e1632c6084 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 1 Jun 2018 17:27:58 +0200 Subject: Only add profiles to profile manager at init --- plugins/ProfileEditor/profileeditorplugin.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/ProfileEditor/profileeditorplugin.h') diff --git a/plugins/ProfileEditor/profileeditorplugin.h b/plugins/ProfileEditor/profileeditorplugin.h index e026bbe..7ae0a57 100644 --- a/plugins/ProfileEditor/profileeditorplugin.h +++ b/plugins/ProfileEditor/profileeditorplugin.h @@ -9,6 +9,7 @@ #ifndef PROFILEEDITOR_PLUGIN_H #define PROFILEEDITOR_PLUGIN_H +#include #include class QWebEngineProfile; @@ -24,7 +25,11 @@ public: QHash> commands() override; // ProfileInterface - QDialog *createWidget(QHash profiles, QWidget *parent) override; + void addProfile(const QString &name, QWebEngineProfile *profile) override; + QDialog *createWidget(QWidget *parent) override; + +private: + QHash profiles; }; #endif //PROFILEEDITOR_PLUGIN_H -- cgit v1.2.1