diff options
author | Chris Xiong <chirs241097@gmail.com> | 2021-11-07 11:11:43 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2021-11-07 11:11:43 -0500 |
commit | 0e0d6ff2032c12d48d577f7380d4bfb995fd33dd (patch) | |
tree | 3eb22337553c289491739e6713ddae81d73928d3 /qmidiplayer-desktop | |
parent | ba900be300c87d1fa8c56433f64a83fbea05e1c4 (diff) | |
download | QMidiPlayer-0e0d6ff2032c12d48d577f7380d4bfb995fd33dd.tar.xz |
Remove redundant event handling for preset selection dialog.
... which is also causing trouble for some systems.
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/qmppresetselect.cpp | 9 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmppresetselect.hpp | 2 |
2 files changed, 0 insertions, 11 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(); diff --git a/qmidiplayer-desktop/qmppresetselect.hpp b/qmidiplayer-desktop/qmppresetselect.hpp index 6eaf2bf..64a9760 100644 --- a/qmidiplayer-desktop/qmppresetselect.hpp +++ b/qmidiplayer-desktop/qmppresetselect.hpp @@ -16,7 +16,6 @@ class qmpPresetSelector: public QDialog public: explicit qmpPresetSelector(QWidget *parent = 0); ~qmpPresetSelector(); - void showEvent(QShowEvent *e); void setupWindow(int chid); private slots: @@ -31,7 +30,6 @@ private slots: private: Ui::qmpPresetSelector *ui; - char presets[129][128][24]; void on_pbCancel_clicked(); void on_pbOk_clicked(); int ch; |