aboutsummaryrefslogtreecommitdiff
path: root/plugins/ProfileEditor/profileeditorplugin.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-15 14:26:47 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-15 14:26:47 +0200
commite412f035b054612d00fdbc39e13a958cf5492fec (patch)
tree438b806b4d1a53be6761dc91acedc988e489de01 /plugins/ProfileEditor/profileeditorplugin.cpp
parentSet download tooltip image preview width to 400 (diff)
downloadsmolbote-e412f035b054612d00fdbc39e13a958cf5492fec.tar.xz
Profile editor plugin
Diffstat (limited to 'plugins/ProfileEditor/profileeditorplugin.cpp')
-rw-r--r--plugins/ProfileEditor/profileeditorplugin.cpp5
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;
}