aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmppresetselect.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-07 11:11:43 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-11-07 11:11:43 -0500
commit0e0d6ff2032c12d48d577f7380d4bfb995fd33dd (patch)
tree3eb22337553c289491739e6713ddae81d73928d3 /qmidiplayer-desktop/qmppresetselect.cpp
parentba900be300c87d1fa8c56433f64a83fbea05e1c4 (diff)
downloadQMidiPlayer-0e0d6ff2032c12d48d577f7380d4bfb995fd33dd.tar.xz
Remove redundant event handling for preset selection dialog.
... which is also causing trouble for some systems.
Diffstat (limited to 'qmidiplayer-desktop/qmppresetselect.cpp')
-rw-r--r--qmidiplayer-desktop/qmppresetselect.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/qmidiplayer-desktop/qmppresetselect.cpp b/qmidiplayer-desktop/qmppresetselect.cpp
index 8ad05a3..1eb5282 100644
--- a/qmidiplayer-desktop/qmppresetselect.cpp
+++ b/qmidiplayer-desktop/qmppresetselect.cpp
@@ -16,15 +16,6 @@ qmpPresetSelector::~qmpPresetSelector()
delete ui;
}
-void qmpPresetSelector::showEvent(QShowEvent *e)
-{
- memset(presets, 0, sizeof(presets));
- if (!qmpMainWindow::getInstance()->getFluid()->getSFCount())
- return e->ignore();
- ui->lwBankSelect->clear();
- ui->lwPresetSelect->clear();
- e->accept();
-}
void qmpPresetSelector::setupWindow(int chid)
{
CMidiPlayer *plyr = qmpMainWindow::getInstance()->getPlayer();