diff options
Diffstat (limited to 'muse2/muse/confmport.cpp')
-rw-r--r-- | muse2/muse/confmport.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/muse2/muse/confmport.cpp b/muse2/muse/confmport.cpp index 69cbccdd..77e6889c 100644 --- a/muse2/muse/confmport.cpp +++ b/muse2/muse/confmport.cpp @@ -1016,13 +1016,11 @@ void MPConfig::removeInstanceClicked() void MusE::configMidiPorts() { - if (!midiPortConfig) - midiPortConfig = new MPConfig(0); - if (midiPortConfig->isVisible()) { + if (!midiPortConfig) { + midiPortConfig = new MPConfig(this); + } + midiPortConfig->show(); midiPortConfig->raise(); midiPortConfig->activateWindow(); - } - else - midiPortConfig->show(); } |