diff options
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.cpp')
-rw-r--r-- | plugins/ProfileEditor/profileeditorplugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/ProfileEditor/profileeditorplugin.cpp b/plugins/ProfileEditor/profileeditorplugin.cpp index d048875..7a92e51 100644 --- a/plugins/ProfileEditor/profileeditorplugin.cpp +++ b/plugins/ProfileEditor/profileeditorplugin.cpp @@ -9,10 +9,9 @@ #include "profileeditorplugin.h" #include "forms/profileview.h" -QWidget *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent) +QDialog *ProfileEditorPlugin::createWidget(QWebEngineProfile *profile, QWidget *parent) { auto *widget = new ProfileView(profile, parent); - widget->setWindowFlags(Qt::ToolTip); - widget->setVisible(false); + widget->setAttribute(Qt::WA_DeleteOnClose, true); return widget; } |