fix file selector

This commit is contained in:
Patrick von Reth 2015-02-05 16:25:59 +01:00
parent 5341e7b2ab
commit d4ef70f6c4
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ SoundSettings::SoundSettings(SnorePlugin *snorePlugin, QWidget *parent) :
connect(button, &QPushButton::clicked, [this]() {
QFileDialog dialog;
dialog.setNameFilter("All Audio files (*.mp3 *.wav *.ogg)");
dialog.setFilter(QDir::Files);
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setDirectory(m_lineEdit->text());
dialog.exec();
m_lineEdit->setText(dialog.selectedFiles().first());