SavePlaylistsDialog: Add parent to ctor

This commit is contained in:
Jonas Kvinge 2023-10-13 22:53:27 +02:00
parent c39489060b
commit f03ff452b8
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@
#include "playlist/playlist.h" #include "playlist/playlist.h"
SavePlaylistsDialog::SavePlaylistsDialog(const QStringList &types, const QString &default_extension) : ui_(new Ui_SavePlaylistsDialog) { SavePlaylistsDialog::SavePlaylistsDialog(const QStringList &types, const QString &default_extension, QWidget *parent) : QDialog(parent), ui_(new Ui_SavePlaylistsDialog) {
ui_->setupUi(this); ui_->setupUi(this);

View File

@ -31,7 +31,7 @@ class SavePlaylistsDialog : public QDialog {
Q_OBJECT Q_OBJECT
public: public:
explicit SavePlaylistsDialog(const QStringList &types, const QString &default_extension); explicit SavePlaylistsDialog(const QStringList &types, const QString &default_extension, QWidget *parent = nullptr);
~SavePlaylistsDialog(); ~SavePlaylistsDialog();
QString path() const { return ui_->lineedit_path->text(); } QString path() const { return ui_->lineedit_path->text(); }