From a89bf499261c8a4542930fd488c2652b31080fd5 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Wed, 11 May 2011 20:34:22 +0000 Subject: Added file filter: All (*). --- muse2/synti/fluid/fluidgui.cpp | 2 +- muse2/synti/fluidsynth/fluidsynthgui.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'muse2/synti') diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp index 3ba70aff..7bd42d23 100644 --- a/muse2/synti/fluid/fluidgui.cpp +++ b/muse2/synti/fluid/fluidgui.cpp @@ -73,7 +73,7 @@ void FLUIDGui::loadFont() void FLUIDGui::soundFontFileDialog() { - QString s = QFileDialog::getOpenFileName(this, QString(), QString(), QString("*.[Ss][Ff]2")); + QString s = QFileDialog::getOpenFileName(this, QString(), QString(), QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); if (!s.isEmpty()) { pathEntry->setText(s); } diff --git a/muse2/synti/fluidsynth/fluidsynthgui.cpp b/muse2/synti/fluidsynth/fluidsynthgui.cpp index 8c7bbf12..6fb49958 100644 --- a/muse2/synti/fluidsynth/fluidsynthgui.cpp +++ b/muse2/synti/fluidsynth/fluidsynthgui.cpp @@ -164,7 +164,7 @@ void FluidSynthGui::loadClicked() QString filename = QFileDialog::getOpenFileName(this, tr("Choose soundfont"), lastdir, - QString("*.[Ss][Ff]2")); + QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); if (filename != QString::null) { int lastslash = filename.lastIndexOf('/'); -- cgit v1.2.3 From dfcc51927bdbe7e9d9fe31312242853811df5bc6 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Wed, 11 May 2011 22:23:37 +0000 Subject: Another fix for file filters. --- muse2/synti/fluid/fluidgui.cpp | 3 ++- muse2/synti/fluidsynth/fluidsynthgui.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'muse2/synti') diff --git a/muse2/synti/fluid/fluidgui.cpp b/muse2/synti/fluid/fluidgui.cpp index 7bd42d23..af8d937c 100644 --- a/muse2/synti/fluid/fluidgui.cpp +++ b/muse2/synti/fluid/fluidgui.cpp @@ -73,7 +73,8 @@ void FLUIDGui::loadFont() void FLUIDGui::soundFontFileDialog() { - QString s = QFileDialog::getOpenFileName(this, QString(), QString(), QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); + //QString s = QFileDialog::getOpenFileName(this, QString(), QString(), QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); + QString s = QFileDialog::getOpenFileName(this, QString(), QString(), QString("Soundfonts (*.sf2);;All files (*)")); if (!s.isEmpty()) { pathEntry->setText(s); } diff --git a/muse2/synti/fluidsynth/fluidsynthgui.cpp b/muse2/synti/fluidsynth/fluidsynthgui.cpp index 6fb49958..2e91515f 100644 --- a/muse2/synti/fluidsynth/fluidsynthgui.cpp +++ b/muse2/synti/fluidsynth/fluidsynthgui.cpp @@ -164,7 +164,8 @@ void FluidSynthGui::loadClicked() QString filename = QFileDialog::getOpenFileName(this, tr("Choose soundfont"), lastdir, - QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); + //QString("Soundfonts (*.[Ss][Ff]2);;All files (*)")); + QString("Soundfonts (*.sf2);;All files (*)")); if (filename != QString::null) { int lastslash = filename.lastIndexOf('/'); -- cgit v1.2.3