From 9f139f5807c3c18a77ebaa8e646355c19dca5ca9 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 11 Nov 2019 22:34:52 +0800 Subject: Partially revert 78ba2cf1 "MessageBox show at center of the current monitor". QDesktopWidget is obsolete. Also when built against recent Qt versions, this bug can't be reproduced with the commit reverted. --- qmidiplayer-desktop/qmpsettingswindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'qmidiplayer-desktop') diff --git a/qmidiplayer-desktop/qmpsettingswindow.cpp b/qmidiplayer-desktop/qmpsettingswindow.cpp index ee08fb9..17e16bf 100644 --- a/qmidiplayer-desktop/qmpsettingswindow.cpp +++ b/qmidiplayer-desktop/qmpsettingswindow.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include "qmpsettingswindow.hpp" #include "qmpdeviceprioritydialog.hpp" @@ -395,9 +394,7 @@ void qmpSettingsWindow::postInit() } if(selecteddev=="Internal FluidSynth"&&!sf) { - // blmark: show dialog at the current screen which user using now. - int curMonitor = QApplication::desktop()->screenNumber(this); - if(QMessageBox::question(QDesktopWidget().screen(curMonitor),//this, + if(QMessageBox::question(this, tr("No soundfont loaded"), tr("Internal fluidsynth is the only available MIDI output but it has no soundfont set. " "Would you like to setup soundfonts now? You may have to reload the internal synth afterwards."))==QMessageBox::Yes) -- cgit v1.2.3