Fix compile warning

parent 1f9d298e
......@@ -20,9 +20,9 @@
#include "generators.h"
#include "assets/abstractassetsrepository.hpp"
#include "doc/kthumb.h"
#include "timecodedisplay.h"
#include "effects/effectsrepository.hpp"
#include "kdenlivesettings.h"
#include "monitor/monitor.h"
#include <QDialogButtonBox>
#include <QDir>
......@@ -44,7 +44,7 @@
#include <mlt++/MltProfile.h>
#include <mlt++/MltTractor.h>
Generators::Generators(Monitor *monitor, const QString &path, QWidget *parent)
Generators::Generators(const QString &path, QWidget *parent)
: QDialog(parent)
, m_producer(nullptr)
, m_timePos(nullptr)
......
......@@ -40,7 +40,6 @@ class Producer;
class QLabel;
class QResizeEvent;
class ParameterContainer;
class Monitor;
class TimecodeDisplay;
class Generators : public QDialog
......@@ -48,7 +47,7 @@ class Generators : public QDialog
Q_OBJECT
public:
explicit Generators(Monitor *monitor, const QString &path, QWidget *parent = nullptr);
explicit Generators(const QString &path, QWidget *parent = nullptr);
~Generators() override;
static void getGenerators(const QStringList &producers, QMenu *menu);
......
......@@ -855,7 +855,7 @@ void MainWindow::loadGenerators()
void MainWindow::buildGenerator(QAction *action)
{
Generators gen(m_clipMonitor, action->data().toString(), this);
Generators gen(action->data().toString(), this);
if (gen.exec() == QDialog::Accepted) {
pCore->bin()->slotAddClipToProject(gen.getSavedClip());
}
......
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