Commit 6db7c0d6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove mem leak. Create widget on stack

parent 492c0ad7
Pipeline #193152 passed with stage
in 7 minutes and 5 seconds
......@@ -18,11 +18,11 @@ ExternalEditorWarningTest::ExternalEditorWarningTest(QObject *parent)
void ExternalEditorWarningTest::shouldHaveDefaultValue()
{
auto wid = new QWidget;
auto layout = new QHBoxLayout(wid);
QWidget wid;
auto layout = new QHBoxLayout(&wid);
ExternalEditorWarning w;
layout->addWidget(&w);
wid->show();
wid.show();
QVERIFY(!w.isVisible());
// QVERIFY(w.isCloseButtonVisible());
QCOMPARE(w.messageType(), KMessageWidget::Information);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment