fix crash
This commit is contained in:
parent
a3fa05c1d0
commit
4e0b906bb5
|
@ -31,7 +31,7 @@ SoundSettings::SoundSettings(SnorePlugin *snorePlugin, QWidget *parent) :
|
||||||
{
|
{
|
||||||
addRow("Sound File:",m_lineEdit);
|
addRow("Sound File:",m_lineEdit);
|
||||||
QPushButton *button = new QPushButton("Select a sound File");
|
QPushButton *button = new QPushButton("Select a sound File");
|
||||||
connect(button,&QPushButton::clicked,[&](){
|
connect(button, &QPushButton::clicked, [this](){
|
||||||
QFileDialog dialog;
|
QFileDialog dialog;
|
||||||
dialog.setNameFilter("All Audio files (*.mp3 *.wav *.ogg)");
|
dialog.setNameFilter("All Audio files (*.mp3 *.wav *.ogg)");
|
||||||
dialog.setFilter(QDir::Files);
|
dialog.setFilter(QDir::Files);
|
||||||
|
|
Loading…
Reference in New Issue