fix file selector
This commit is contained in:
parent
5341e7b2ab
commit
d4ef70f6c4
|
@ -33,7 +33,7 @@ SoundSettings::SoundSettings(SnorePlugin *snorePlugin, QWidget *parent) :
|
||||||
connect(button, &QPushButton::clicked, [this]() {
|
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.setFileMode(QFileDialog::ExistingFile);
|
||||||
dialog.setDirectory(m_lineEdit->text());
|
dialog.setDirectory(m_lineEdit->text());
|
||||||
dialog.exec();
|
dialog.exec();
|
||||||
m_lineEdit->setText(dialog.selectedFiles().first());
|
m_lineEdit->setText(dialog.selectedFiles().first());
|
||||||
|
|
Loading…
Reference in New Issue