Commit 57ace239 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to KNS3::QtQuickDialogWrapper

parent 786d248e
Pipeline #73630 failed with stage
in 2 minutes and 4 seconds
......@@ -33,7 +33,7 @@
#include <KSharedConfig>
#include <KToolBarPopupAction>
#include <kns3/downloaddialog.h>
#include <KNS3/QtQuickDialogWrapper>
#include "interpreter/errormsg.h"
#include "interpreter/translator.h"
......@@ -1072,8 +1072,9 @@ void MainWindow::slotMessageDialog(const QString& text)
void MainWindow::getNewExampleDialog()
{
QPointer<KNS3::DownloadDialog> dialog = new KNS3::DownloadDialog(this);
dialog->exec();
updateExamplesMenu();
delete dialog;
KNS3::QtQuickDialogWrapper dialog(QStringLiteral("kturtle.knsrc"));
const QList<KNSCore::EntryInternal> entries = dialog.exec();
if ( entries.size() > 0 ){
updateExamplesMenu();
}
}
Markdown is supported
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