diff options
-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; |